Commit 09fadc83 authored by Georgios Bitzes's avatar Georgios Bitzes

MGM: Drop unused 'capability' configuration option

parent 1b73d478
Pipeline #704564 passed with stages
in 99 minutes and 45 seconds
......@@ -170,7 +170,7 @@ XrdMgmOfs::XrdMgmOfs(XrdSysError* ep):
mInitialized(kDown), mFileInitTime(0), mTotalInitTime(time(nullptr)),
mStartTime(time(nullptr)), Shutdown(false),
mBootFileId(0), mBootContainerId(0), IsRedirect(true), IsStall(true),
mAuthorize(false), mAuthLib(""), IssueCapability(false), MgmRedirector(false),
mAuthorize(false), mAuthLib(""), MgmRedirector(false),
ErrorLog(true), eosDirectoryService(0), eosFileService(0), eosView(0),
eosFsView(0), eosContainerAccounting(0), eosSyncTimeAccounting(0),
mStatsTid(0), mFrontendPort(0), mNumAuthThreads(0),
......
......@@ -1404,7 +1404,6 @@ public:
bool IsStall; ///< true if the Stall function should be called to send a wait
bool mAuthorize; ///< Determine if the autorization should be applied or not
std::string mAuthLib; ///< Path to authorization library
bool IssueCapability; ///< defines if the Mgm issues capabilities
//! Acts only as a redirector, disables many components in the MGM
bool MgmRedirector;
//! Mgm writes error log with cluster collected file into
......
......@@ -263,7 +263,6 @@ XrdMgmOfs::Configure(XrdSysError& Eroute)
XrdOucStream Config(&Eroute, getenv("XRDINSTANCE"));
XrdOucString role = "server";
pthread_t tid = 0;
IssueCapability = false;
MgmRedirector = false;
// set short timeouts in the new XrdCl class
XrdCl::DefaultEnv::GetEnv()->PutInt("TimeoutResolution", 1);
......@@ -520,27 +519,6 @@ XrdMgmOfs::Configure(XrdSysError& Eroute)
}
}
if (!strcmp("capability", var)) {
if (!(val = Config.GetWord())) {
Eroute.Emsg("Config",
"argument 2 for capability missing. Can be true/lazy/1 or false/0");
NoGo = 1;
} else {
if ((!(strcmp(val, "true"))) || (!(strcmp(val, "1")))
|| (!(strcmp(val, "lazy")))) {
IssueCapability = true;
} else {
if ((!(strcmp(val, "false"))) || (!(strcmp(val, "0")))) {
IssueCapability = false;
} else {
Eroute.Emsg("Config",
"argument 2 for capbility invalid. Can be <true>/1 or <false>/0");
NoGo = 1;
}
}
}
}
if (!strcmp("broker", var)) {
if (!(val = Config.GetWord())) {
Eroute.Emsg("Config",
......
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