You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Eventually found the problem with rename(). Was calling
::unlink() instead of our unlink/remove.
This commit is contained in:
@ -20,6 +20,8 @@
|
||||
#include "SMFileFactory.h"
|
||||
#include "SMDataFile.h"
|
||||
#include "SMComm.h"
|
||||
#include "BufferedFile.h"
|
||||
#include "IDBDataFile.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -28,6 +30,10 @@ namespace idbdatafile {
|
||||
|
||||
IDBDataFile* SMFileFactory::open(const char *filename, const char *mode, unsigned opts, unsigned colWidth)
|
||||
{
|
||||
// TODO, test whether this breaks anything.
|
||||
//if (opts & IDBDataFile::USE_TMPFILE)
|
||||
// return new BufferedFile(filename, mode, opts);
|
||||
|
||||
bool _read = false;
|
||||
bool _write = false;
|
||||
bool create = false;
|
||||
|
@ -68,7 +68,7 @@ int SMFileSystem::rename(const char *oldFile, const char *newFile)
|
||||
int err = copyFile(oldFile, newFile);
|
||||
if (err)
|
||||
return err;
|
||||
err = unlink(oldFile);
|
||||
err = this->remove(oldFile);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,6 @@ vector<IDBDataFile::Types> IDBFactory::listPlugins()
|
||||
|
||||
IDBDataFile* IDBFactory::open(IDBDataFile::Types type, const char* fname, const char* mode, unsigned opts, unsigned colWidth)
|
||||
{
|
||||
/* If this is a tmp file, ie opts & USE_TMPFILE, might want to force that to be a local file */
|
||||
if ( s_plugins.find(type) == s_plugins.end() )
|
||||
{
|
||||
ostringstream oss;
|
||||
|
@ -1889,7 +1889,8 @@ void SlaveComm::do_vbRollback1(ByteStream& msg)
|
||||
if (!standalone)
|
||||
master.write(reply);
|
||||
|
||||
takeSnapshot = true;
|
||||
//takeSnapshot = true;
|
||||
doSaveDelta = true;
|
||||
}
|
||||
|
||||
void SlaveComm::do_vbRollback2(ByteStream& msg)
|
||||
|
Reference in New Issue
Block a user