summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/parsed_delete.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-02-04 14:40:58 -0500
committerMathias Stearn <mathias@10gen.com>2015-02-13 15:29:33 -0500
commit7286fb36c36daaa8ee4941fa5f6c225b0a25dc61 (patch)
treefcaf7e8dacc72fbae82976a8247490daa9343a98 /src/mongo/db/ops/parsed_delete.h
parentfccb1246e8c36cb0b79889458c8f45f637e3603f (diff)
downloadmongo-7286fb36c36daaa8ee4941fa5f6c225b0a25dc61.tar.gz
SERVER-17175 Use X lock for $isolated updates and deletes
Diffstat (limited to 'src/mongo/db/ops/parsed_delete.h')
-rw-r--r--src/mongo/db/ops/parsed_delete.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/ops/parsed_delete.h b/src/mongo/db/ops/parsed_delete.h
index c117db28cb7..cb189bfccc8 100644
--- a/src/mongo/db/ops/parsed_delete.h
+++ b/src/mongo/db/ops/parsed_delete.h
@@ -84,6 +84,11 @@ namespace mongo {
bool canYield() const;
/**
+ * Is this update supposed to be isolated?
+ */
+ bool isIsolated() const;
+
+ /**
* As an optimization, we don't create a canonical query for updates with simple _id
* queries. Use this method to determine whether or not we actually parsed the query.
*/