return rocksdb::Status::OK();
}
- using rocksdb::WritableFile::RangeSync;
// Sync a file range with disk.
// offset is the starting byte of the file range to be synchronized.
// nbytes specifies the length of the range to be synchronized.
// This asks the OS to initiate flushing the cached data to disk,
// without waiting for completion.
- // Default implementation does nothing.
- rocksdb::Status RangeSync(off_t offset, off_t nbytes) {
+ rocksdb::Status RangeSync(uint64_t offset, uint64_t nbytes) override {
// round down to page boundaries
int partial = offset & 4095;
offset -= partial;
}
protected:
- using rocksdb::WritableFile::Allocate;
/*
* Pre-allocate space for a file.
*/
- rocksdb::Status Allocate(off_t offset, off_t len) {
+ rocksdb::Status Allocate(uint64_t offset, uint64_t len) override {
int r = fs->preallocate(h->file, offset, len);
return err_to_status(r);
}