Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Potential fix for unittest RDBBtree.SindexInterruptionViaDrop failure #35

Open
wants to merge 2 commits into
base: next
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/rdb_protocol/btree_store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ void store_t::clear_sindex_data(
if (!found) {
// The index got dropped by someone else. That's ok, there's nothing left
// to do for us.
sindex_block.reset_buf_lock();
txn->commit();
return;
}

Expand Down Expand Up @@ -852,6 +854,8 @@ void store_t::drop_sindex(uuid_u sindex_id) THROWS_NOTHING {
if (!found) {
// The index got dropped by someone else. That's ok, there's nothing left for us
// to do.
sindex_block.reset_buf_lock();
txn->commit();
return;
}

Expand Down