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 /include/leveldb/c.h | |
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 'include/leveldb/c.h')
-rw-r--r-- | include/leveldb/c.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/leveldb/c.h b/include/leveldb/c.h index 7ac8121..dc6f255 100644 --- a/include/leveldb/c.h +++ b/include/leveldb/c.h @@ -184,6 +184,8 @@ LEVELDB_EXPORT void leveldb_options_set_cache(leveldb_options_t*, LEVELDB_EXPORT void leveldb_options_set_block_size(leveldb_options_t*, size_t); LEVELDB_EXPORT void leveldb_options_set_block_restart_interval( leveldb_options_t*, int); +LEVELDB_EXPORT void leveldb_options_set_max_file_size(leveldb_options_t*, + size_t); enum { leveldb_no_compression = 0, |