pgbackrest.git / summary / log / commit / refs
commit e53de3ce46497edee69dc4fb65d54185ccbcfd66
Author: David Steele <david@pgmasters.net>
Date: Fri Jun 26 10:50:20 2020 +0000
Add/update comments in storage/s3 module.
src/storage/s3/storage.intern.h | 16 ++++++++--------
src/storage/s3/write.c | 2 +-
src/storage/s3/write.h | 2 +-
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/storage/s3/storage.intern.h b/src/storage/s3/storage.intern.h
index 51ff48591..a9edcf449 100644
--- a/src/storage/s3/storage.intern.h
+++ b/src/storage/s3/storage.intern.h
@@ -19,8 +19,8 @@ Functions
typedef struct StorageS3RequestAsyncParam
{
VAR_PARAM_HEADER;
- const HttpQuery *query;
- const Buffer *content;
+ const HttpQuery *query; // Query parameters
+ const Buffer *content; // Request content
} StorageS3RequestAsyncParam;
#define storageS3RequestAsyncP(this, verb, uri, ...) \
@@ -32,8 +32,8 @@ HttpRequest *storageS3RequestAsync(StorageS3 *this, const String *verb, const St
typedef struct StorageS3ResponseParam
{
VAR_PARAM_HEADER;
- bool allowMissing;
- bool contentIo;
+ bool allowMissing; // Allow missing files (caller can check response code)
+ bool contentIo; // Is IoRead interface required to read content?
} StorageS3ResponseParam;
#define storageS3ResponseP(request, ...) \
@@ -45,10 +45,10 @@ HttpResponse *storageS3Response(HttpRequest *request, StorageS3ResponseParam par
typedef struct StorageS3RequestParam
{
VAR_PARAM_HEADER;
- const HttpQuery *query;
- const Buffer *content;
- bool allowMissing;
- bool contentIo;
+ const HttpQuery *query; // Query parameters
+ const Buffer *content; // Request content
+ bool allowMissing; // Allow missing files (caller can check response code)
+ bool contentIo; // Is IoRead interface required to read content?
} StorageS3RequestParam;
#define storageS3RequestP(this, verb, uri, ...) \
diff --git a/src/storage/s3/write.c b/src/storage/s3/write.c
index d33a3ddb9..ed26632bf 100644
--- a/src/storage/s3/write.c
+++ b/src/storage/s3/write.c
@@ -1,5 +1,5 @@
/***********************************************************************************************************************************
-S3 Storage File write
+S3 Storage File Write
***********************************************************************************************************************************/
#include "build.auto.h"
diff --git a/src/storage/s3/write.h b/src/storage/s3/write.h
index 607cc0acb..c09870ce9 100644
--- a/src/storage/s3/write.h
+++ b/src/storage/s3/write.h
@@ -1,5 +1,5 @@
/***********************************************************************************************************************************
-S3 Storage File write
+S3 Storage File Write
***********************************************************************************************************************************/
#ifndef STORAGE_S3_WRITE_H
#define STORAGE_S3_WRITE_H
[parent: 974cc10b90b1]