Skip to content

Commit c87f6c8

Browse files
greensky00hisundar
authored andcommitted
Do not call releaseCleanNodes in the middle of iteration
* Iterator V2 internally calls releaseCleanNode, so we should not call it for iterator. Change-Id: I2817223f78c28ce5f47635c42bd108e3573bed82 Reviewed-on: http://review.couchbase.org/70592 Reviewed-by: Sundararaman Sridharan <sundar@couchbase.com> Tested-by: Sundararaman Sridharan <sundar@couchbase.com>
1 parent 2c4e5cc commit c87f6c8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/staleblock.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ void StaleDataManager::loadInmemStaleInfo(FdbKvsHandle *handle)
142142
do {
143143
if (is_btree_v2) {
144144
BtreeKvPair kv_pair = bit_v2->getKvBT();
145-
handle->bnodeMgr->releaseCleanNodes();
146145
if (!kv_pair.key) {
147146
break;
148147
}
@@ -749,7 +748,6 @@ reusable_block_list StaleDataManager::getReusableBlocks(FdbKvsHandle *handle,
749748
do {
750749
if (is_btree_v2) {
751750
BtreeKvPair kv_pair = bit_v2->getKvBT();
752-
handle->bnodeMgr->releaseCleanNodes();
753751
if (!kv_pair.key) {
754752
break;
755753
}

0 commit comments

Comments
 (0)