Skip to content

Commit

Permalink
Disable POSC processing when a proxy plugin is loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Feb 26, 2015
1 parent 7002cce commit 8335ad9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/XrdOfs/XrdOfsConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,12 @@ int XrdOfs::Configure(XrdSysError &Eroute, XrdOucEnv *EnvInfo) {

// If POSC processing is enabled (as by default) do it. Warning! This must be
// the last item in the configuration list as we need a working filesystem.
// Note that in proxy mode we always disable posc!
//
if (poscAuto != -1 && !NoGo) NoGo |= ConfigPosc(Eroute);
if (getenv("XRDXROOTD_NOPOSC"))
{if (poscAuto != -1 && !NoGo)
Eroute.Say("Config POSC has been disabled by the osslib plugin.");
} else if (poscAuto != -1 && !NoGo) NoGo |= ConfigPosc(Eroute);

// Setup statistical monitoring
//
Expand Down Expand Up @@ -319,7 +323,7 @@ void XrdOfs::Config_Display(XrdSysError &Eroute)
" all.role %s\n"
"%s"
" ofs.maxdelay %d\n"
" ofs.persist %s hold %d%s%s%s"
" ofs.persist %s hold %d%s%s%s\n"
" ofs.trace %x",
cloc, myRole,
(Options & Authorize ? " ofs.authorize\n" : ""),
Expand Down
4 changes: 4 additions & 0 deletions src/XrdPss/XrdPssConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ int XrdPssSys::Configure(const char *cfn)
//
XrdOucEnv::Export("XRDXROOTD_NOAIO", "1");

// Thell xrootd to disable POSC mode as this is meaningless here
//
XrdOucEnv::Export("XRDXROOTD_NOPOSC", "1");

// Initialize an alternate cache if one is present
//
if (cPath && !getCache()) return 1;
Expand Down

0 comments on commit 8335ad9

Please sign in to comment.