You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +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++)
|
||||
|
@ -183,6 +183,8 @@ struct ColumnThread
|
||||
|
||||
if (bUsingHdfs)
|
||||
fileType = IDBDataFile::HDFS;
|
||||
else if (IDBPolicy::useCloud())
|
||||
fileType = IDBDataFile::CLOUD;
|
||||
else
|
||||
fileType = IDBDataFile::UNBUFFERED;
|
||||
|
||||
|
@ -49,8 +49,10 @@ namespace WriteEngine
|
||||
// on useHdfs() to tell me which FileSystem reference to get.
|
||||
//------------------------------------------------------------------------------
|
||||
ConfirmHdfsDbFile::ConfirmHdfsDbFile() :
|
||||
fFs( (idbdatafile::IDBPolicy::useHdfs()) ?
|
||||
fFs(idbdatafile::IDBPolicy::useHdfs() ?
|
||||
idbdatafile::IDBFileSystem::getFs(idbdatafile::IDBDataFile::HDFS) :
|
||||
idbdatafile::IDBPolicy::useCloud() ?
|
||||
idbdatafile::IDBFileSystem::getFs(idbdatafile::IDBDataFile::CLOUD) :
|
||||
idbdatafile::IDBFileSystem::getFs(idbdatafile::IDBDataFile::BUFFERED))
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user