summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/update_lifecycle_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ops/update_lifecycle_impl.h')
-rw-r--r--src/mongo/db/ops/update_lifecycle_impl.h39
1 files changed, 19 insertions, 20 deletions
diff --git a/src/mongo/db/ops/update_lifecycle_impl.h b/src/mongo/db/ops/update_lifecycle_impl.h
index c321b43912d..114ebd72ba2 100644
--- a/src/mongo/db/ops/update_lifecycle_impl.h
+++ b/src/mongo/db/ops/update_lifecycle_impl.h
@@ -35,31 +35,30 @@
namespace mongo {
- class UpdateLifecycleImpl : public UpdateLifecycle {
- MONGO_DISALLOW_COPYING(UpdateLifecycleImpl);
+class UpdateLifecycleImpl : public UpdateLifecycle {
+ MONGO_DISALLOW_COPYING(UpdateLifecycleImpl);
- public:
+public:
+ /**
+ * ignoreVersion is for shard version checking and
+ * means that version checks will not be done
+ *
+ * nsString represents the namespace for the
+ */
+ UpdateLifecycleImpl(bool ignoreVersion, const NamespaceString& nsString);
- /**
- * ignoreVersion is for shard version checking and
- * means that version checks will not be done
- *
- * nsString represents the namespace for the
- */
- UpdateLifecycleImpl(bool ignoreVersion, const NamespaceString& nsString);
+ virtual void setCollection(Collection* collection);
- virtual void setCollection(Collection* collection);
+ virtual bool canContinue() const;
- virtual bool canContinue() const;
+ virtual const UpdateIndexData* getIndexKeys(OperationContext* opCtx) const;
- virtual const UpdateIndexData* getIndexKeys(OperationContext* opCtx) const;
+ virtual const std::vector<FieldRef*>* getImmutableFields() const;
- virtual const std::vector<FieldRef*>* getImmutableFields() const;
-
- private:
- Collection* _collection;
- const NamespaceString& _nsString;
- ChunkVersion _shardVersion;
- };
+private:
+ Collection* _collection;
+ const NamespaceString& _nsString;
+ ChunkVersion _shardVersion;
+};
} /* namespace mongo */