mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-12 10:04:14 +02:00
Add expression parameter to TEST_STORAGE_LIST() macro.
This commit is contained in:
parent
6a1c0337dd
commit
50c129ae9d
@ -249,7 +249,9 @@ hrnStorageList(
|
||||
// Generate a list of files/paths/etc
|
||||
List *list = lstNewP(sizeof(StorageInfo));
|
||||
|
||||
storageInfoListP(storage, pathFull, hrnStorageListCallback, list, .sortOrder = sortOrderAsc, .recurse = !param.noRecurse);
|
||||
storageInfoListP(
|
||||
storage, pathFull, hrnStorageListCallback, list, .sortOrder = sortOrderAsc, .recurse = !param.noRecurse,
|
||||
.expression = param.expression != NULL ? STR(param.expression) : NULL);
|
||||
|
||||
// Remove files if requested
|
||||
if (param.remove)
|
||||
|
@ -62,6 +62,7 @@ typedef struct HrnStorageListParam
|
||||
VAR_PARAM_HEADER;
|
||||
bool remove; // Remove files after testing?
|
||||
bool noRecurse; // Do not recurse into subdirectories
|
||||
const char *expression; // Filter the list based on expression
|
||||
const char *comment; // Comment
|
||||
} HrnStorageListParam;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user