diff options
Diffstat (limited to 'src/mongo/s/cluster_write.h')
-rw-r--r-- | src/mongo/s/cluster_write.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/s/cluster_write.h b/src/mongo/s/cluster_write.h index 9fd177f756a..0ef15426da7 100644 --- a/src/mongo/s/cluster_write.h +++ b/src/mongo/s/cluster_write.h @@ -37,12 +37,15 @@ namespace mongo { class ClusterWriterStats; class BatchWriteExecStats; +class OperationContext; class ClusterWriter { public: ClusterWriter(bool autoSplit, int timeoutMillis); - void write(const BatchedCommandRequest& request, BatchedCommandResponse* response); + void write(OperationContext* txn, + const BatchedCommandRequest& request, + BatchedCommandResponse* response); const ClusterWriterStats& getStats(); @@ -73,7 +76,8 @@ private: * * Note: response can be NULL if you don't care about the write statistics. */ -Status clusterCreateIndex(const std::string& ns, +Status clusterCreateIndex(OperationContext* txn, + const std::string& ns, BSONObj keys, bool unique, BatchedCommandResponse* response); |