1
0
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:
Patrick LeBlanc
2019-01-24 17:34:20 -06:00
parent a2c789d52a
commit 4583b2e8dc
4 changed files with 82 additions and 8 deletions

View File

@ -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();
}
}