Commit d957c470 authored by Elvin Sindrilaru's avatar Elvin Sindrilaru

MGM: Add switch to the SetConfigValue method to decide when to take the lock

or not for the sConfigDefinitions map.
parent 9992b235
......@@ -667,7 +667,7 @@ FileConfigEngine::AutoSave()
FileConfigEngine::SetConfigValue(const char* prefix, const char* key,
const char* val, bool tochangelog)
const char* val, bool tochangelog, bool lock)
XrdOucString cl = "set config ";
......@@ -155,6 +155,7 @@ public:
//! @param key key of the configuration to set
//! @param val value of the configuration
//! @param tochangelog if true add entry also to the changelog
//! @param lock if true then take the mMutex lock, other skip
void SetConfigValue(const char* prefix, const char* key, const char* val,
bool tochangelog = true);
......@@ -1675,7 +1675,8 @@ FsView::StoreFsConfig(FileSystem* fs)
fs->CreateConfig(key, val);
if (FsView::sConfEngine) {
FsView::sConfEngine->SetConfigValue("fs", key.c_str(), val.c_str());
FsView::sConfEngine->SetConfigValue("fs", key.c_str(), val.c_str(), true,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment