File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,10 @@ class WriteBatch : public WriteBatchBase {
173173 // Otherwise returns Status::OK().
174174 Status PopSavePoint () override ;
175175
176+ void setContentFlag (uint32_t theContentFlag) {
177+ content_flags_.store (theContentFlag,std::memory_order_seq_cst);
178+ }
179+
176180 // Support for iterating over the contents of a batch.
177181 class Handler {
178182 public:
Original file line number Diff line number Diff line change @@ -87,8 +87,12 @@ class WriteBufferManager {
8787 }
8888 }
8989
90+ void SetBufferSize (size_t new_size) {
91+ buffer_size_ = new_size;
92+ }
93+
9094 private:
91- const size_t buffer_size_;
95+ std::atomic< size_t > buffer_size_;
9296 const size_t mutable_limit_;
9397 std::atomic<size_t > memory_used_;
9498 // Memory that hasn't been scheduled to free.
You can’t perform that action at this time.
0 commit comments