summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/update.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-08-01 09:35:39 -0400
committerMathias Stearn <mathias@10gen.com>2017-08-16 16:28:02 -0400
commit40036f67d0c15e2cd319e82f8c6a1e691fb74806 (patch)
treefd9744b756fb092c47c1b3fbcd15e349fe0e270a /src/mongo/db/exec/update.h
parent53a9b329fbf1a6d8b620fee2cbb2ef1c27ddd3f3 (diff)
downloadmongo-40036f67d0c15e2cd319e82f8c6a1e691fb74806.tar.gz
SERVER-30580 No more status locations
Diffstat (limited to 'src/mongo/db/exec/update.h')
-rw-r--r--src/mongo/db/exec/update.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/mongo/db/exec/update.h b/src/mongo/db/exec/update.h
index fa866f87606..f5dccd1c7e6 100644
--- a/src/mongo/db/exec/update.h
+++ b/src/mongo/db/exec/update.h
@@ -132,17 +132,16 @@ public:
*
* Fills out whether or not this is a fastmodinsert in 'stats'.
*
- * Returns the document to insert in *out.
+ * Returns the document to insert.
*/
- static Status applyUpdateOpsForInsert(OperationContext* opCtx,
- const CanonicalQuery* cq,
- const BSONObj& query,
- UpdateDriver* driver,
- mutablebson::Document* doc,
- bool isInternalRequest,
- const NamespaceString& ns,
- UpdateStats* stats,
- BSONObj* out);
+ static BSONObj applyUpdateOpsForInsert(OperationContext* opCtx,
+ const CanonicalQuery* cq,
+ const BSONObj& query,
+ UpdateDriver* driver,
+ mutablebson::Document* doc,
+ bool isInternalRequest,
+ const NamespaceString& ns,
+ UpdateStats* stats);
private:
/**
@@ -171,11 +170,6 @@ private:
bool needInsert();
/**
- * Helper for restoring the state of this update.
- */
- Status restoreUpdateState();
-
- /**
* Stores 'idToRetry' in '_idRetrying' so the update can be retried during the next call to
* work(). Always returns NEED_YIELD and sets 'out' to WorkingSet::INVALID_ID.
*/