rocksdb icon indicating copy to clipboard operation
rocksdb copied to clipboard

Add a OnManualFlushScheduled callback in event listener

Open jowlyzhang opened this issue 9 months ago • 0 comments

As titled. Also added the newest user-defined timestamp into the MemTableInfo. This can be a useful info in the callback.

Added some unit tests as examples for how users can use two separate approaches to allow manual flush / manual compactions to go through when the user-defined timestamps in memtable only feature is enabled. One approach relies on selectively increase cutoff timestamp in OnMemtableSeal callback when it's initiated by a manual flush. Another approach is to increase cutoff timestamp in OnManualFlushScheduled callback. The caveats of the approaches are also documented in the unit test.

jowlyzhang avatar May 09 '24 00:05 jowlyzhang