diff options
author | Randolph Tan <randolph@10gen.com> | 2016-01-13 15:18:36 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2016-01-15 12:03:19 -0500 |
commit | 65f2da2c49c2b22d2b80e6562b9b61f242cb9a18 (patch) | |
tree | aef7afabf45ee7bf427f0a3097442ede23e30303 /src/mongo/s/write_ops/batch_write_exec.h | |
parent | 200b1cd8caf4b617e98a486cfbf17d00108bf881 (diff) | |
download | mongo-65f2da2c49c2b22d2b80e6562b9b61f242cb9a18.tar.gz |
SERVER-22114 Remove unnecessary refresh in ChunkManagerTargeter::refreshNow
In addition, limit the lifetime of ChunkManager instances so it can free references to ChunkManager earlier.
Diffstat (limited to 'src/mongo/s/write_ops/batch_write_exec.h')
-rw-r--r-- | src/mongo/s/write_ops/batch_write_exec.h | 10 |
1 files changed, 2 insertions, 8 deletions
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<BatchWriteExecStats> _stats; }; struct HostOpTime { |