8
0
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:
dimitr 2002-11-10 13:41:20 +00:00
parent ca90178fec
commit 8a5afa8bd0
3 changed files with 16 additions and 2 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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
};
/******************************************************************************