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
issue_template.md
> Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://www.facebook.com/groups/rocksdb.dev
### Expected behavior
### Actual behavior
### Steps to reproduce the behavior
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...