Skip to content

Commit

Permalink
[POSIX] Avoid unnecessary cache open requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jun 26, 2018
1 parent 20620cb commit a0401dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdPosix/XrdPosixXrootd.cc
Expand Up @@ -578,7 +578,7 @@ int XrdPosixXrootd::Open(const char *path, int oflags, mode_t mode,
// open request ans we have a lot more work to do.
//
if (XrdPosixGlobals::myCache2)
{int rc = XrdPosixGlobals::myCache2->Prepare(path, oflags, mode);
{int rc = XrdPosixGlobals::myCache2->Prepare(fp->Path(), oflags, mode);
if (rc > 0) return OpenDefer(fp, cbP, XOflags, XOmode, oflags&isStream);
if (rc < 0) {delete fp; errno = -rc; return -1;}
}
Expand Down

0 comments on commit a0401dd

Please sign in to comment.