Merge pull request #630 from rdallman/c-wb-logdata
C: add WriteBatch.PutLogData support
This commit is contained in:
commit
47f1e72125
6
db/c.cc
6
db/c.cc
@ -1266,6 +1266,12 @@ void rocksdb_writebatch_deletev_cf(
|
||||
b->rep.Delete(column_family->rep, SliceParts(key_slices.data(), num_keys));
|
||||
}
|
||||
|
||||
void rocksdb_writebatch_put_log_data(
|
||||
rocksdb_writebatch_t* b,
|
||||
const char* blob, size_t len) {
|
||||
b->rep.PutLogData(Slice(blob, len));
|
||||
}
|
||||
|
||||
void rocksdb_writebatch_iterate(
|
||||
rocksdb_writebatch_t* b,
|
||||
void* state,
|
||||
|
@ -459,6 +459,9 @@ void rocksdb_writebatch_deletev_cf(
|
||||
rocksdb_column_family_handle_t* column_family,
|
||||
int num_keys, const char* const* keys_list,
|
||||
const size_t* keys_list_sizes);
|
||||
extern void rocksdb_writebatch_put_log_data(
|
||||
rocksdb_writebatch_t*,
|
||||
const char* blob, size_t len);
|
||||
extern void rocksdb_writebatch_iterate(
|
||||
rocksdb_writebatch_t*,
|
||||
void* state,
|
||||
|
Loading…
Reference in New Issue
Block a user