diff options
author | cmumford <cmumford@google.com> | 2017-10-25 16:13:51 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2017-11-03 15:04:26 -0700 |
commit | 47cb9e2a211e1d7157078ba7bab536beb29e56dc (patch) | |
tree | e5f3196b0780b8f11d52bc1363a2a80cae5c97fd /db/c.cc | |
parent | b5d4a22e64c7a6615b412f464026c808b58b1d34 (diff) | |
download | leveldb-47cb9e2a211e1d7157078ba7bab536beb29e56dc.tar.gz |
Add leveldb_options_set_max_file_size to the C API.
When the max file size option was added in CL 134391640 the C API
was not modified to support this.
This change was contributed by GitHub user @olt and fixes issue #439.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=173466388
Diffstat (limited to 'db/c.cc')
-rw-r--r-- | db/c.cc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -446,6 +446,10 @@ void leveldb_options_set_block_restart_interval(leveldb_options_t* opt, int n) { opt->rep.block_restart_interval = n; } +void leveldb_options_set_max_file_size(leveldb_options_t* opt, size_t s) { + opt->rep.max_file_size = s; +} + void leveldb_options_set_compression(leveldb_options_t* opt, int t) { opt->rep.compression = static_cast<CompressionType>(t); } |