mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-06-20 01:17:49 +02:00
Remove redundant storage type constants.
These constants predate the C storage drivers which now provide their own constants.
This commit is contained in:
@@ -351,19 +351,19 @@ storageRepoGet(const String *type, bool write)
|
||||
protocolRemoteGet(protocolStorageTypeRepo, 1), cfgOptionUInt(cfgOptCompressLevelNetwork));
|
||||
}
|
||||
// Use CIFS storage
|
||||
else if (strEqZ(type, STORAGE_TYPE_CIFS))
|
||||
else if (strEqZ(type, STORAGE_CIFS_TYPE))
|
||||
{
|
||||
result = storageCifsNew(
|
||||
cfgOptionStr(cfgOptRepoPath), STORAGE_MODE_FILE_DEFAULT, STORAGE_MODE_PATH_DEFAULT, write, storageRepoPathExpression);
|
||||
}
|
||||
// Use Posix storage
|
||||
else if (strEqZ(type, STORAGE_TYPE_POSIX))
|
||||
else if (strEqZ(type, STORAGE_POSIX_TYPE))
|
||||
{
|
||||
result = storagePosixNewP(
|
||||
cfgOptionStr(cfgOptRepoPath), .write = write, .pathExpressionFunction = storageRepoPathExpression);
|
||||
}
|
||||
// Use S3 storage
|
||||
else if (strEqZ(type, STORAGE_TYPE_S3))
|
||||
else if (strEqZ(type, STORAGE_S3_TYPE))
|
||||
{
|
||||
// Set the default port
|
||||
unsigned int port = cfgOptionUInt(cfgOptRepoS3Port);
|
||||
|
||||
@@ -24,13 +24,6 @@ Storage path constants
|
||||
#define STORAGE_PATH_BACKUP "backup"
|
||||
STRING_DECLARE(STORAGE_PATH_BACKUP_STR);
|
||||
|
||||
/***********************************************************************************************************************************
|
||||
Repository storage types
|
||||
***********************************************************************************************************************************/
|
||||
#define STORAGE_TYPE_CIFS "cifs"
|
||||
#define STORAGE_TYPE_POSIX "posix"
|
||||
#define STORAGE_TYPE_S3 "s3"
|
||||
|
||||
/***********************************************************************************************************************************
|
||||
Functions
|
||||
***********************************************************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user