Skip to content

Commit f30b676

Browse files
committed
[io] TFile: allow using cache with READ_WITHOUT_GLOBALREGISTRATION
1 parent 3512413 commit f30b676

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

io/io/src/TFile.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3883,7 +3883,8 @@ TFile *TFile::Open(const char *url, Option_t *options, const char *ftitle,
38833883

38843884
// check if we read through a file cache
38853885
if (!strcasecmp(option, "CACHEREAD") ||
3886-
((!strcasecmp(option,"READ") || !option[0]) && fgCacheFileForce)) {
3886+
((!strcasecmp(option, "READ") || !strcasecmp(option, "READ_WITHOUT_GLOBALREGISTRATION") || !option[0]) &&
3887+
fgCacheFileForce)) {
38873888
// Try opening the file from the cache
38883889
if ((f = TFile::OpenFromCache(n, option, ftitle, compress, netopt)))
38893890
return f;

0 commit comments

Comments
 (0)