Skip to content

Commit

Permalink
make overall buffer size dynamic within WriteBufferManager (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewvon authored Oct 21, 2020
1 parent 174ccbd commit b7e3fef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/rocksdb/write_buffer_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ class WriteBufferManager {
}
}

void SetBufferSize(size_t new_size) {
buffer_size_ = new_size;
}

private:
const size_t buffer_size_;
std::atomic<size_t> buffer_size_;
const size_t mutable_limit_;
std::atomic<size_t> memory_used_;
// Memory that hasn't been scheduled to free.
Expand Down

0 comments on commit b7e3fef

Please sign in to comment.