From ba2e818de44c9a331ce09a624780a2bd841cf6e4 Mon Sep 17 00:00:00 2001 From: Daniel Gottlieb Date: Tue, 21 May 2019 12:44:00 -0400 Subject: SERVER-41213: Trigger a write conflict in unique, non-partial index build code path. (cherry picked from commit 3372bc595d099392e422d735074ba687efd6634b) --- src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp index ecf3c183996..4ddbde52460 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp @@ -1116,6 +1116,7 @@ void WiredTigerIndexUnique::_unindex(WT_CURSOR* c, } int ret = WT_OP_CHECK(c->remove(c)); if (ret == WT_NOTFOUND) { + triggerWriteConflictAtPoint(c); return; } invariantWTOK(ret); -- cgit v1.2.1