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
Added SMDataFile methods to the list tested.
This commit is contained in:
@ -127,4 +127,17 @@ int SMDataFile::close()
|
||||
return 0;
|
||||
}
|
||||
|
||||
// constructor used for testing
|
||||
SMDataFile::SMDataFile(const char *fname, int _openmode, size_t fake_size)
|
||||
: IDBDataFile(fname)
|
||||
{
|
||||
openmode = _openmode;
|
||||
// the 'a' file open mode is the only one that starts at EOF
|
||||
if ((openmode & O_APPEND) && !(openmode & O_RDWR))
|
||||
position = fake_size;
|
||||
else
|
||||
position = 0;
|
||||
comm = SMComm::get();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user