1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

Minor improvement to what determines whether a file is 'local'

or on some 'other' kind of filesystem.
This commit is contained in:
Patrick LeBlanc
2019-07-29 14:41:23 -05:00
parent 8190e44d1f
commit 00158c86ec

View File

@ -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;