Commit 3458ac28 authored by Elvin Sindrilaru's avatar Elvin Sindrilaru

MGM: Fix race condition when updating the global config map

parent d957c470
......@@ -667,7 +667,7 @@ FileConfigEngine::AutoSave()
//------------------------------------------------------------------------------
void
FileConfigEngine::SetConfigValue(const char* prefix, const char* key,
const char* val, bool tochangelog, bool lock)
const char* val, bool tochangelog)
{
XrdOucString cl = "set config ";
......
......@@ -155,7 +155,6 @@ 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,8 +1675,7 @@ FsView::StoreFsConfig(FileSystem* fs)
fs->CreateConfig(key, val);
if (FsView::sConfEngine) {
FsView::sConfEngine->SetConfigValue("fs", key.c_str(), val.c_str(), true,
true);
FsView::sConfEngine->SetConfigValue("fs", key.c_str(), val.c_str());
}
}
}
......
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