You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-27 21:01:50 +03:00
Incremental commit. Stripping out the OBE fstream IO code.
This commit is contained in:
@ -108,21 +108,9 @@ int BlockResolutionManager::saveState(string filename) throw()
|
||||
|
||||
// truncate teh file if already exists since no truncate in HDFS.
|
||||
const char* filename = journalFilename.c_str();
|
||||
|
||||
if (true || IDBPolicy::useHdfs())
|
||||
{
|
||||
IDBDataFile* journal = IDBDataFile::open(
|
||||
IDBPolicy::getType(filename, IDBPolicy::WRITEENG), filename, "wb", 0);
|
||||
delete journal;
|
||||
}
|
||||
else
|
||||
{
|
||||
ofstream journal;
|
||||
uint32_t utmp = ::umask(0);
|
||||
journal.open(filename, ios_base::out | ios_base::trunc | ios_base::binary);
|
||||
journal.close();
|
||||
::umask(utmp);
|
||||
}
|
||||
IDBDataFile* journal = IDBDataFile::open(
|
||||
IDBPolicy::getType(filename, IDBPolicy::WRITEENG), filename, "wb", 0);
|
||||
delete journal;
|
||||
|
||||
vbbm.save(vbbmFilename);
|
||||
vss.save(vssFilename);
|
||||
|
Reference in New Issue
Block a user