From feb54904c799dbe35d48023765a9dc5289585f52 Mon Sep 17 00:00:00 2001 From: Toktarev Alexander Date: Tue, 16 Apr 2019 12:50:47 +0300 Subject: [PATCH] Make content_flags_ to be available for public API --- include/rocksdb/write_batch.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/rocksdb/write_batch.h b/include/rocksdb/write_batch.h index c40c448fd..ce82ceabd 100644 --- a/include/rocksdb/write_batch.h +++ b/include/rocksdb/write_batch.h @@ -171,6 +171,10 @@ class WriteBatch : public WriteBatchBase { // Otherwise returns Status::OK(). Status PopSavePoint() override; + void setContentFlag(uint32_t theContentFlag) { + content_flags_.store(theContentFlag,std::memory_order_seq_cst); + } + // Support for iterating over the contents of a batch. class Handler { public: