C API: bugfix column_family_comact_range
This commit is contained in:
parent
01159aa802
commit
e9b18b6b89
1
db/c.cc
1
db/c.cc
@ -770,6 +770,7 @@ void rocksdb_compact_range_cf(
|
|||||||
const char* limit_key, size_t limit_key_len) {
|
const char* limit_key, size_t limit_key_len) {
|
||||||
Slice a, b;
|
Slice a, b;
|
||||||
db->rep->CompactRange(
|
db->rep->CompactRange(
|
||||||
|
column_family->rep,
|
||||||
// Pass nullptr Slice if corresponding "const char*" is nullptr
|
// Pass nullptr Slice if corresponding "const char*" is nullptr
|
||||||
(start_key ? (a = Slice(start_key, start_key_len), &a) : nullptr),
|
(start_key ? (a = Slice(start_key, start_key_len), &a) : nullptr),
|
||||||
(limit_key ? (b = Slice(limit_key, limit_key_len), &b) : nullptr));
|
(limit_key ? (b = Slice(limit_key, limit_key_len), &b) : nullptr));
|
||||||
|
Loading…
Reference in New Issue
Block a user