From 98b8b5bdf1a39937328c239cf6d3f9fc40f69fb2 Mon Sep 17 00:00:00 2001 From: siddontang Date: Mon, 28 Jul 2014 10:16:14 +0800 Subject: [PATCH] rocksdb compile bugfix --- store/rocksdb/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/rocksdb/options.go b/store/rocksdb/options.go index 2e16c0b..3a9f043 100644 --- a/store/rocksdb/options.go +++ b/store/rocksdb/options.go @@ -134,7 +134,7 @@ func (o *Options) SetTargetFileSizeMultiplier(n int) { } func (o *Options) SetMaxBytesForLevelBase(n int) { - C.rocksdb_options_set_max_bytes_for_level_base(o.Opt, C.int(n)) + C.rocksdb_options_set_max_bytes_for_level_base(o.Opt, C.uint64_t(uint64(n))) } func (o *Options) SetMaxBytesForLevelMultiplier(n int) {