diff options
author | Sophia Tan <sophia_tll@hotmail.com> | 2022-09-15 17:05:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-15 21:01:30 +0000 |
commit | d2c70e27724e27ffa412929bc7b11a64afde194e (patch) | |
tree | 36c3659bf4fdfe1131d6542a3bb41b3e33b93607 /src/mongo/db/active_index_builds.cpp | |
parent | 05d1b5a4f2118d76d9ed2ba78e2547b3d392105c (diff) | |
download | mongo-d2c70e27724e27ffa412929bc7b11a64afde194e.tar.gz |
SERVER-67437 Store DatabaseName on ReplIndexBuildState
Diffstat (limited to 'src/mongo/db/active_index_builds.cpp')
-rw-r--r-- | src/mongo/db/active_index_builds.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/active_index_builds.cpp b/src/mongo/db/active_index_builds.cpp index 70dd6d56057..e9041058530 100644 --- a/src/mongo/db/active_index_builds.cpp +++ b/src/mongo/db/active_index_builds.cpp @@ -174,9 +174,7 @@ std::vector<std::shared_ptr<ReplIndexBuildState>> ActiveIndexBuilds::_filterInde void ActiveIndexBuilds::awaitNoBgOpInProgForDb(OperationContext* opCtx, const DatabaseName& dbName) { stdx::unique_lock<Latch> lk(_mutex); - auto indexBuildFilter = [dbName](const auto& replState) { - return dbName.toStringWithTenantId() == replState.dbName; - }; + auto indexBuildFilter = [dbName](const auto& replState) { return dbName == replState.dbName; }; auto pred = [&, this]() { auto dbIndexBuilds = _filterIndexBuilds_inlock(lk, indexBuildFilter); return dbIndexBuilds.empty(); |