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

C: add WriteBatch.PutLogData support
This commit is contained in:
Igor Canadi 2015-06-10 10:50:28 -07:00
commit 47f1e72125
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,