mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 11:55:15 +00:00
lsa: update _closed_occupancy after freeing all segments
_closed_occupancy will be used when a region is removed from its region
group, make sure that it is accurate.
Signed-off-by: Paweł Dziepak <pdziepak@scylladb.com>
(cherry picked from commit 338fd34770)
This commit is contained in:
committed by
Pekka Enberg
parent
2f91375d36
commit
c4b24e4a0b
@@ -1211,6 +1211,7 @@ public:
|
||||
assert(seg->is_empty());
|
||||
free_segment(seg);
|
||||
}
|
||||
_closed_occupancy = {};
|
||||
if (_active) {
|
||||
assert(_active->is_empty());
|
||||
free_segment(_active);
|
||||
|
||||
Reference in New Issue
Block a user