1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-05 00:28:52 +02:00

Storage object improvements.

* Add storageCopy(), storageMove(), and storagePathSync().
* Separate StorageFile object into separate read and write objects.
* Abstract out Posix file read/write objects.
This commit is contained in:
David Steele
2018-04-23 17:26:27 -04:00
parent 02cc8ccbd4
commit bb8c315cad
36 changed files with 1802 additions and 436 deletions

View File

@ -49,7 +49,7 @@ walStatus(const String *walSegment, bool confessOnError)
const String *statusFile = strLstGet(fileList, 0);
String *content = strNewBuf(
storageGetNP(storageOpenReadNP(storageSpool(), strNewFmt("%s/%s", STORAGE_SPOOL_ARCHIVE_OUT, strPtr(statusFile)))));
storageGetNP(storageNewReadNP(storageSpool(), strNewFmt("%s/%s", STORAGE_SPOOL_ARCHIVE_OUT, strPtr(statusFile)))));
// Get the code and message if the file has content
int code = 0;