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::fallocate(), it's just a call to truncate() for now.
Updated ref of storage-manager subproject.
This commit is contained in:
@ -95,6 +95,12 @@ int SMDataFile::truncate(off64_t length)
|
||||
return comm->truncate(name(), length);
|
||||
}
|
||||
|
||||
int SMDataFile::fallocate(int mode, off64_t offset, off64_t length)
|
||||
{
|
||||
idbassert_s(mode == 0, "SMDataFile::fallocate() does not support mode != 0 right now.");
|
||||
return comm->truncate(name(), offset + length);
|
||||
}
|
||||
|
||||
off64_t SMDataFile::size()
|
||||
{
|
||||
struct stat _stat;
|
||||
|
@ -36,6 +36,7 @@ class SMDataFile : public IDBDataFile
|
||||
ssize_t write(const void* ptr, size_t count);
|
||||
int seek(off64_t offset, int whence);
|
||||
int truncate(off64_t length);
|
||||
int fallocate(int mode, off64_t offset, off64_t length);
|
||||
off64_t size();
|
||||
off64_t tell();
|
||||
int flush();
|
||||
|
Submodule utils/cloudio/storage-manager updated: 867c12f07f...6e2247e2b1
Reference in New Issue
Block a user