Skip to content

Commit aeceafc

Browse files
committed
Small fix
1 parent 0fc39ef commit aeceafc

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/MongoDB.Driver/Core/Operations/DistinctOperation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public BsonDocument CreateCommand(OperationContext operationContext, ICoreSessio
153153
};
154154
}
155155

156-
private EventContext.OperationNameDisposer BeginOperation() => EventContext.BeginOperation(OperationName);
156+
private EventContext.OperationIdDisposer BeginOperation() => EventContext.BeginOperation(null, OperationName);
157157

158158
private ReadCommandOperation<DistinctResult> CreateOperation(OperationContext operationContext, RetryableReadContext context)
159159
{

src/MongoDB.Driver/Core/Operations/EstimatedDocumentCountOperation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public async Task<long> ExecuteAsync(OperationContext operationContext, IReadBin
9494
}
9595
}
9696

97-
private EventContext.OperationNameDisposer BeginOperation() => EventContext.BeginOperation(OperationName);
97+
private EventContext.OperationIdDisposer BeginOperation() => EventContext.BeginOperation(null, OperationName);
9898

9999
private IExecutableInRetryableReadContext<long> CreateCountOperation()
100100
{

src/MongoDB.Driver/Core/Operations/RetryableReadContext.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ public async Task DoChannelAcquisitionAsync(OperationContext operationContext)
123123
}
124124
}
125125

126-
//TODO We can proably remove those, are used only by tests now
127126
public void AcquireOrReplaceChannel(OperationContext operationContext, IReadOnlyCollection<ServerDescription> deprioritizedServers)
128127
{
129128
DoServerSelection(operationContext, deprioritizedServers);

0 commit comments

Comments
 (0)