C: add WriteBatch.PutLogData support

This commit is contained in:
Reed Allman 2015-06-10 00:12:33 -07:00
parent e409d3d745
commit 735df66552
2 changed files with 9 additions and 0 deletions

View File

@ -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,

View File

@ -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,