Merge pull request #198 from rdallman/cf-compact-range

C API: bugfix column_family_compact_range
This commit is contained in:
Igor Canadi 2014-07-08 08:51:41 -07:00
commit db1a10e9b8

View file

@ -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));