diff options
-rw-r--r-- | src/mongo/db/ftdc/controller_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/ftdc/controller_test.cpp b/src/mongo/db/ftdc/controller_test.cpp index 6788f66881b..b821d96065a 100644 --- a/src/mongo/db/ftdc/controller_test.cpp +++ b/src/mongo/db/ftdc/controller_test.cpp @@ -61,6 +61,9 @@ public: void collect(OperationContext* opCtx, BSONObjBuilder& builder) final { _state = State::kStarted; + + stdx::unique_lock<Latch> lck(_mutex); + ++_counter; // Generate document to return for collector |