mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd::db::env: Assert rocksdb does not call prefetch with direct-io.
This commit is contained in:
parent
900fab1e79
commit
dae1a9be4a
1 changed files with 3 additions and 0 deletions
|
@ -3235,6 +3235,9 @@ noexcept try
|
|||
};
|
||||
#endif
|
||||
|
||||
// Note RocksDB does not call our prefetch() when using direct IO.
|
||||
assert(!this->opts.direct);
|
||||
|
||||
fs::prefetch(fd, length, offset);
|
||||
return Status::OK();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue