From 65f2da2c49c2b22d2b80e6562b9b61f242cb9a18 Mon Sep 17 00:00:00 2001 From: Randolph Tan Date: Wed, 13 Jan 2016 15:18:36 -0500 Subject: SERVER-22114 Remove unnecessary refresh in ChunkManagerTargeter::refreshNow In addition, limit the lifetime of ChunkManager instances so it can free references to ChunkManager earlier. --- src/mongo/s/write_ops/batch_write_exec.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/mongo/s/write_ops/batch_write_exec.h') diff --git a/src/mongo/s/write_ops/batch_write_exec.h b/src/mongo/s/write_ops/batch_write_exec.h index bb900b2825e..e29a80a9a72 100644 --- a/src/mongo/s/write_ops/batch_write_exec.h +++ b/src/mongo/s/write_ops/batch_write_exec.h @@ -75,11 +75,8 @@ public: */ void executeBatch(OperationContext* txn, const BatchedCommandRequest& clientRequest, - BatchedCommandResponse* clientResponse); - - const BatchWriteExecStats& getStats(); - - BatchWriteExecStats* releaseStats(); + BatchedCommandResponse* clientResponse, + BatchWriteExecStats* stats); private: // Not owned here @@ -90,9 +87,6 @@ private: // Not owned here MultiCommandDispatch* _dispatcher; - - // Stats - std::unique_ptr _stats; }; struct HostOpTime { -- cgit v1.2.1