rocksdb/unreleased_history/new_features
Jay Huh 4f584652ab Add an option to wait for purge in WaitForCompact (#12520)
Summary:
Adding an option to wait for purge to complete in `WaitForCompact` API.

Internally, RocksDB has a way to wait for purge to complete (e.g. TEST_WaitForPurge() in db_impl_debug.cc), but there's no public API available for gracefully wait for purge to complete.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/12520

Test Plan:
Unit Test Added - `WaitForCompactWithWaitForPurgeOptionTest`
```
./deletefile_test -- --gtest_filter="*WaitForCompactWithWaitForPurgeOptionTest*"
```

Existing Tests
```
./db_compaction_test -- --gtest_filter="*WaitForCompactWithOption*"
```

Reviewed By: ajkr

Differential Revision: D55888283

Pulled By: jaykorean

fbshipit-source-id: cfc6d6e8657deaefab8961890b36e390095c9f65
2024-04-17 17:33:27 -07:00
..
.gitkeep Better management of unreleased HISTORY (#11481) 2023-05-30 16:42:49 -07:00
cache_dumper.md Cache dumper exit early due to deadline or max_dumped_size (#12491) 2024-04-11 21:56:45 -07:00
get_entity_from_batch_and_db.md Add GetEntityFromBatchAndDB to WriteBatchWithIndex (#12533) 2024-04-15 09:20:47 -07:00
multi_cf_iterators.md MultiCfIterator - AttributeGroupIter Impl & CoalescingIter Optimization (#12534) 2024-04-16 08:45:38 -07:00
multi_get_entity_from_batch_and_db.md Add MultiGetEntityFromBatchAndDB to WriteBatchWithIndex (#12539) 2024-04-16 08:58:04 -07:00
sst_file_reader_raw_table_iterator.md Add support in SstFileReader to get a raw table iterator (#12385) 2024-04-02 21:23:06 -07:00
wait_for_purge_option.md Add an option to wait for purge in WaitForCompact (#12520) 2024-04-17 17:33:27 -07:00