0
0
Fork 0
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:
Jason Volk 2019-04-20 18:45:36 -07:00
parent 900fab1e79
commit dae1a9be4a

View file

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