Revision 37cd617b6bd9efb04a2a4e9b0bed65431b7732fd authored by Nathan VanBenschoten on 27 April 2018, 04:08:46 UTC, committed by Facebook Github Bot on 27 April 2018, 04:12:51 UTC
Summary:
This change adds a virtual `Truncate` method to `Env`, which truncates
the named file to the specified size. At the moment, this is only
supported for `MockEnv`, but other `Env's` could be extended to override
the method too. This is the same approach that methods like `LinkFile` and
`AreSameFile` have taken.

This is useful for any user of the in-memory `Env`. The implementation's
header is not exported, so before this change, it was impossible to
access it's already existing `Truncate` method.
Closes https://github.com/facebook/rocksdb/pull/3779

Differential Revision: D7785789

Pulled By: ajkr

fbshipit-source-id: 3bcdaeea7b7180529f7d9b496dc67b791a00bbf0
1 parent db36f22
History
File Mode Size
modules
RocksDBConfig.cmake.in -rw-r--r-- 108 bytes

back to top