We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b12108 + 7f7b191 commit 733f5e2Copy full SHA for 733f5e2
features/storage/kvstore/tdbstore/TDBStore.cpp
@@ -663,16 +663,15 @@ int TDBStore::set_finalize(set_handle_t handle)
663
}
664
665
end:
666
- if ((need_gc) && (ih->bd_base_offset != _master_record_offset)) {
667
- garbage_collection();
668
- }
669
-
670
// mark handle as invalid by clearing magic field in header
671
ih->header.magic = 0;
672
673
_inc_set_mutex.unlock();
674
675
if (ih->bd_base_offset != _master_record_offset) {
+ if (need_gc) {
+ garbage_collection();
+ }
676
_mutex.unlock();
677
678
return ret;
0 commit comments