commitlog_test: Add test for deadlock in recycle waiter

Not a very good test, mind you. Nothing to verify, just see if
the test times out. But try to make it at least complete for
failure report.
This commit is contained in:
Calle Wilund
2021-04-06 13:10:21 +00:00
parent e991e01f2e
commit 813694b617
3 changed files with 91 additions and 0 deletions

View File

@@ -2449,6 +2449,14 @@ std::vector<sstring> db::commitlog::get_active_segment_names() const {
return _segment_manager->get_active_names();
}
uint64_t db::commitlog::disk_limit() const {
return _segment_manager->max_disk_size;
}
uint64_t db::commitlog::disk_footprint() const {
return _segment_manager->totals.total_size_on_disk;
}
uint64_t db::commitlog::get_total_size() const {
return _segment_manager->totals.active_size_on_disk + _segment_manager->totals.buffer_list_bytes;
}