Skip to content

Commit 54c95df

Browse files
lynne-wangMongoDB Bot
authored andcommitted
SERVER-100901 Relax user digest invariant to tassert in ShardingTaskExecutor (#32452) (#32603)
GitOrigin-RevId: d7fc62e09cd38670f324f9feef000a9f92a0d301
1 parent c8034bb commit 54c95df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mongo/s/sharding_task_executor.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ StatusWith<TaskExecutor::CallbackHandle> ShardingTaskExecutor::scheduleRemoteCom
140140
request.cmdObj["lsid"].Obj());
141141

142142
if (cmdObjLsid.getUid()) {
143-
invariant(*cmdObjLsid.getUid() == request.opCtx->getLogicalSessionId()->getUid());
143+
tassert(100901,
144+
"User digest in the logical session ID from opCtx does not match with the "
145+
"command request",
146+
*cmdObjLsid.getUid() == request.opCtx->getLogicalSessionId()->getUid());
144147
return newRequest;
145148
}
146149

0 commit comments

Comments
 (0)