1 /*********************************************************************************************************************************** 2 Check Command Common 3 ***********************************************************************************************************************************/ 4 #ifndef COMMAND_CHECK_COMMON_H 5 #define COMMAND_CHECK_COMMON_H 6 7 #include "common/type/string.h" 8 #include "db/db.h" 9 #include "info/infoPg.h" 10 11 /*********************************************************************************************************************************** 12 Functions 13 ***********************************************************************************************************************************/ 14 // Check the database path and version are configured correctly 15 void checkDbConfig(const unsigned int pgVersion, const unsigned int pgIdx, const Db *dbObject, bool isStandby); 16 17 // Validate the archive and backup info files 18 void checkStanzaInfo(const InfoPgData *archiveInfo, const InfoPgData *backupInfo); 19 20 // Load and validate the database data of the info files against each other and the current database 21 void checkStanzaInfoPg( 22 const Storage *storage, const unsigned int pgVersion, const uint64_t pgSystemId, CipherType cipherType, 23 const String *cipherPass); 24 25 #endif 26