mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:43:03 +01:00
Guardian option is added to the config manager.
This commit is contained in:
parent
ca90178fec
commit
8a5afa8bd0
@ -52,7 +52,8 @@ const string keys[] = {
|
||||
"SortMemBlockSize", // 1
|
||||
"SortMemUpperLimit", // 2
|
||||
"RemoteFileOpenAbility", // 3
|
||||
"TempDirectories" // 4
|
||||
"TempDirectories", // 4
|
||||
"GuardianOption" // 5
|
||||
};
|
||||
|
||||
/******************************************************************************
|
||||
@ -185,3 +186,10 @@ string_vector Config::getTempDirectories(string default_value)
|
||||
ConfigImpl::instance().getValueList(TEMP_DIRECTORIES, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
int Config::getGuardianOption(int default_value)
|
||||
{
|
||||
int result = default_value;
|
||||
ConfigImpl::instance().getValue(GUARDIAN_OPTION, result);
|
||||
return result;
|
||||
}
|
||||
|
@ -90,6 +90,11 @@ public:
|
||||
List of directories to store temporary files in
|
||||
*/
|
||||
static string_vector getTempDirectories(string default_value = "");
|
||||
|
||||
/*
|
||||
Startup option for the guardian
|
||||
*/
|
||||
static int getGuardianOption(int default_value = 0);
|
||||
};
|
||||
|
||||
#endif // CONFIG_H
|
||||
|
@ -44,7 +44,8 @@ enum ConfigKey
|
||||
SORT_MEM_BLOCK_SIZE, // 1
|
||||
SORT_MEM_UPPER_LIMIT, // 2
|
||||
REMOTE_FILE_OPEN_ABILITY, // 3
|
||||
TEMP_DIRECTORIES // 4
|
||||
TEMP_DIRECTORIES, // 4
|
||||
GUARDIAN_OPTION // 5
|
||||
};
|
||||
|
||||
/******************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user