summaryrefslogtreecommitdiff
path: root/src/mongo/db/s
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2022-02-24 19:33:56 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-24 20:34:37 +0000
commitab0af4dc877ea795069b720b5900e313f7e36f02 (patch)
tree650d3eb8b3826017a35c3c44f70957ecd8df7ba7 /src/mongo/db/s
parent972d3f082e84c82002c15b9ad3bbed05d77db514 (diff)
downloadmongo-ab0af4dc877ea795069b720b5900e313f7e36f02.tar.gz
SERVER-60562 Include cursor value in duplicate key error when testing is enabled
Diffstat (limited to 'src/mongo/db/s')
-rw-r--r--src/mongo/db/s/dist_lock_catalog_replset_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/s/dist_lock_catalog_replset_test.cpp b/src/mongo/db/s/dist_lock_catalog_replset_test.cpp
index aedba30df96..a05f6db250d 100644
--- a/src/mongo/db/s/dist_lock_catalog_replset_test.cpp
+++ b/src/mongo/db/s/dist_lock_catalog_replset_test.cpp
@@ -503,8 +503,9 @@ TEST_F(DistLockCatalogReplSetTest, GrabLockDupKeyError) {
});
onCommand([](const RemoteCommandRequest& request) -> StatusWith<BSONObj> {
- return Status({DuplicateKeyErrorInfo(BSON("x" << 1), BSON("" << 1), BSONObj{}),
- "Mock duplicate key error"});
+ return Status(
+ {DuplicateKeyErrorInfo(BSON("x" << 1), BSON("" << 1), BSONObj{}, stdx::monostate{}),
+ "Mock duplicate key error"});
});
future.default_timed_get();