Skip to content

Commit 2153d78

Browse files
ajcvickersCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 743eaa8 commit 2153d78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MongoDB.Driver/Core/Connections/CommandEventHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public CommandEventHelper(EventLogger<LogCategories.Command> eventLogger, Tracin
6363
if (_shouldTrackState)
6464
{
6565
// we only need to track state if we have to raise
66-
// a succeeded or failed event or for tracing
66+
// a succeeded or failed event; tracing-only scenarios lazily initialize state in TrackCommandState
6767
_state = new ConcurrentDictionary<int, CommandState>();
6868
}
6969
}

0 commit comments

Comments
 (0)