You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-3488. Found places with similar code.
This commit is contained in:
@ -486,8 +486,9 @@ int RedistributeWorkerThread::sendData()
|
||||
int16_t source = fPlanEntry.source;
|
||||
int16_t dest = fPlanEntry.destination;
|
||||
|
||||
IDBDataFile::Types fileType =
|
||||
(IDBPolicy::useHdfs() ? IDBDataFile::HDFS : IDBDataFile::UNBUFFERED);
|
||||
IDBDataFile::Types fileType = (IDBPolicy::useHdfs() ? IDBDataFile::HDFS :
|
||||
IDBPolicy::useCloud() ? IDBDataFile::CLOUD : IDBDataFile::UNBUFFERED);
|
||||
|
||||
IDBFileSystem& fs = IDBFileSystem::getFs( fileType );
|
||||
|
||||
if ((remotePM) && (fileType != IDBDataFile::HDFS))
|
||||
@ -1519,8 +1520,11 @@ void RedistributeWorkerThread::handleDataAbort(SBS& sbs, size_t& size)
|
||||
if (fNewFilePtr != NULL)
|
||||
closeFile(fNewFilePtr);
|
||||
|
||||
IDBFileSystem& fs = IDBFileSystem::getFs(
|
||||
(IDBPolicy::useHdfs() ? IDBDataFile::HDFS : IDBDataFile::UNBUFFERED) );
|
||||
IDBFileSystem& fs = (IDBPolicy::useHdfs() ?
|
||||
IDBFileSystem::getFs(IDBDataFile::HDFS) :
|
||||
IDBPolicy::useCloud() ?
|
||||
IDBFileSystem::getFs(IDBDataFile::CLOUD) :
|
||||
IDBFileSystem::getFs(IDBDataFile::BUFFERED));
|
||||
|
||||
// remove local files
|
||||
for (set<string>::iterator i = fNewDirSet.begin(); i != fNewDirSet.end(); i++)
|
||||
|
Reference in New Issue
Block a user