From e9b18b6b89a46fa9657e8bee3bea2b2ad074f7ed Mon Sep 17 00:00:00 2001 From: Reed Allman Date: Mon, 7 Jul 2014 21:48:49 -0700 Subject: [PATCH] C API: bugfix column_family_comact_range --- db/c.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/c.cc b/db/c.cc index 89cff6eee..0c26b23b8 100644 --- a/db/c.cc +++ b/db/c.cc @@ -770,6 +770,7 @@ void rocksdb_compact_range_cf( const char* limit_key, size_t limit_key_len) { Slice a, b; db->rep->CompactRange( + column_family->rep, // Pass nullptr Slice if corresponding "const char*" is nullptr (start_key ? (a = Slice(start_key, start_key_len), &a) : nullptr), (limit_key ? (b = Slice(limit_key, limit_key_len), &b) : nullptr));