Merge pull request #630 from rdallman/c-wb-logdata

C: add WriteBatch.PutLogData support
main
Igor Canadi 10 years ago
commit 47f1e72125
  1. 6
      db/c.cc
  2. 3
      include/rocksdb/c.h

@ -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…
Cancel
Save