1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-07 00:35:37 +02:00

Add flag to dbGet() to require a standby.

This is needed from backup from standby functionality.
This commit is contained in:
David Steele
2019-12-02 07:39:42 -05:00
parent 28116918ff
commit 33a63aae50
6 changed files with 36 additions and 13 deletions

View File

@ -367,7 +367,7 @@ testRun(void)
HRNPQ_MACRO_DONE()
});
TEST_ASSIGN(db, dbGet(false, false), "get primary and standby");
TEST_ASSIGN(db, dbGet(false, false, false), "get primary and standby");
TEST_RESULT_VOID(checkDbConfig(PG_VERSION_92, db.primaryId, db.primary, false), "valid db config");
@ -429,7 +429,7 @@ testRun(void)
HRNPQ_MACRO_DONE()
});
TEST_ASSIGN(db, dbGet(true, true), "get primary");
TEST_ASSIGN(db, dbGet(true, true, false), "get primary");
TEST_ERROR_FMT(
checkDbConfig(PG_VERSION_92, db.primaryId, db.primary, false), FeatureNotSupportedError,
"archive_mode=always not supported");