|
|
@ -1060,11 +1060,13 @@ ColumnFamilySet::~ColumnFamilySet() { |
|
|
|
while (column_family_data_.size() > 0) { |
|
|
|
while (column_family_data_.size() > 0) { |
|
|
|
// cfd destructor will delete itself from column_family_data_
|
|
|
|
// cfd destructor will delete itself from column_family_data_
|
|
|
|
auto cfd = column_family_data_.begin()->second; |
|
|
|
auto cfd = column_family_data_.begin()->second; |
|
|
|
bool last_ref __attribute__((__unused__)) = cfd->Unref(); |
|
|
|
bool last_ref __attribute__((__unused__)); |
|
|
|
|
|
|
|
last_ref = cfd->Unref(); |
|
|
|
assert(last_ref); |
|
|
|
assert(last_ref); |
|
|
|
delete cfd; |
|
|
|
delete cfd; |
|
|
|
} |
|
|
|
} |
|
|
|
bool dummy_last_ref __attribute__((__unused__)) = dummy_cfd_->Unref(); |
|
|
|
bool dummy_last_ref __attribute__((__unused__)); |
|
|
|
|
|
|
|
dummy_last_ref = dummy_cfd_->Unref(); |
|
|
|
assert(dummy_last_ref); |
|
|
|
assert(dummy_last_ref); |
|
|
|
delete dummy_cfd_; |
|
|
|
delete dummy_cfd_; |
|
|
|
} |
|
|
|
} |
|
|
|