1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Storage hardlink and symlink features require path feature.

Since there is only one driver that supports (or is likely to support) links (Posix), require the path feature to make logic in the code simpler.

The checks are added just in case another driver supports links.
This commit is contained in:
David Steele 2019-12-07 09:26:51 -05:00
parent e632c60525
commit d3f717c892

View File

@ -82,6 +82,12 @@ storageNew(
// If path sync feature is enabled then path feature must be enabled
CHECK(!storageFeature(this, storageFeaturePathSync) || storageFeature(this, storageFeaturePath));
// If hardlink feature is enabled then path feature must be enabled
CHECK(!storageFeature(this, storageFeatureHardLink) || storageFeature(this, storageFeaturePath));
// If symlink feature is enabled then path feature must be enabled
CHECK(!storageFeature(this, storageFeatureSymLink) || storageFeature(this, storageFeaturePath));
FUNCTION_LOG_RETURN(STORAGE, this);
}