From 00158c86ecacec6977552d50d1401917185b7b03 Mon Sep 17 00:00:00 2001 From: Patrick LeBlanc Date: Mon, 29 Jul 2019 14:41:23 -0500 Subject: [PATCH] Minor improvement to what determines whether a file is 'local' or on some 'other' kind of filesystem. --- utils/idbdatafile/IDBPolicy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/idbdatafile/IDBPolicy.cpp b/utils/idbdatafile/IDBPolicy.cpp index 8eec07dd0..5bdeb2271 100644 --- a/utils/idbdatafile/IDBPolicy.cpp +++ b/utils/idbdatafile/IDBPolicy.cpp @@ -131,7 +131,7 @@ bool IDBPolicy::isLocalFile( const std::string& path ) #endif bool isXml = filepath.extension() == ".xml"; //bool isDbrm = path.find("dbrm") != string::npos; // StorageManager: debatable whether dbrm files should go in the cloud - bool isVb = path.find("versionbuffer") != string::npos; + bool isVb = filepath.filename() == "versionbuffer.cdf"; bool isScratch = path.find(s_hdfsRdwrScratch) == 0; return isXml || isVb || isScratch;