You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-01 00:25:06 +02:00
Make remote storage objects writeable.
This wasn't exposed before because the remote protocol directly uses the storage driver, which bypasses the writeable checks. However, the upcoming GCS driver explicitly requests write permissions so remote operations fail when a write is required. It would be far better if the remote itself was marked as writeable but that will require much more work.
This commit is contained in:
@ -151,7 +151,7 @@ storageRemoteProtocol(const String *command, const VariantList *paramList, Proto
|
|||||||
|
|
||||||
// Determine which storage should be used
|
// Determine which storage should be used
|
||||||
const Storage *storage = protocolStorageTypeEnum(
|
const Storage *storage = protocolStorageTypeEnum(
|
||||||
cfgOptionStr(cfgOptRemoteType)) == protocolStorageTypeRepo ? storageRepo() : storagePg();
|
cfgOptionStr(cfgOptRemoteType)) == protocolStorageTypeRepo ? storageRepoWrite() : storagePgWrite();
|
||||||
StorageInterface interface = storageInterface(storage);
|
StorageInterface interface = storageInterface(storage);
|
||||||
void *driver = storageDriver(storage);
|
void *driver = storageDriver(storage);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user