Skip to content

Commit

Permalink
Merge pull request facebook#630 from rdallman/c-wb-logdata
Browse files Browse the repository at this point in the history
C: add WriteBatch.PutLogData support
  • Loading branch information
igorcanadi committed Jun 10, 2015
2 parents 51440f8 + 735df66 commit 47f1e72
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions db/c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions include/rocksdb/c.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 47f1e72

Please sign in to comment.