rocksdb
rocksdb copied to clipboard
IsEmpty() checks were missing before some SwitchMemtable() invocations
Fixes #12179
There was one instance where the IsEmpty() check was missing: https://github.com/facebook/rocksdb/blob/21d5a8f54f06e01ca49d4e6bae89bb42ba78dfdd/db/db_impl/db_impl_write.cc#L1706
Having one check inside SwitchMemTable() will ensure there won't be misses in the future.
This PR did not fix the issue, we applied this PR to our branch, the issue still exists:
The gray text is empty MemTable.