mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +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:
parent
46922ff2e9
commit
54c4eb0c10
@ -151,7 +151,7 @@ storageRemoteProtocol(const String *command, const VariantList *paramList, Proto
|
||||
|
||||
// Determine which storage should be used
|
||||
const Storage *storage = protocolStorageTypeEnum(
|
||||
cfgOptionStr(cfgOptRemoteType)) == protocolStorageTypeRepo ? storageRepo() : storagePg();
|
||||
cfgOptionStr(cfgOptRemoteType)) == protocolStorageTypeRepo ? storageRepoWrite() : storagePgWrite();
|
||||
StorageInterface interface = storageInterface(storage);
|
||||
void *driver = storageDriver(storage);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user