stardog-union / rocksdb

GNU General Public License v2.0
4 stars 1 forks source link

Feature: Add 5.x GetIntProperties() for table cache #25

Closed matthewvon closed 3 years ago

matthewvon commented 3 years ago

This PR contains new code already accepted by Facebook:

https://github.com/facebook/rocksdb/pull/7993

And this PR updates previous code that contains updates per Facebook:

https://github.com/facebook/rocksdb/pull/7961

7993 adds the ability to retrieve integer properties about rocksdb's table cache: capacity and usage. The usage value is now part of memory budget computations within starrocks/main/native/src/memory_configuration.cpp.

7961 updates SetBuffer() within WriteBufferManager object to update BOTH buffersize and mutablelimit. mutablelimit was not updated in original code checked into Stardog's RocksDb. Also made assignments and retrievals of buffersize consistent with proper atomic variable usage.