summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_sharding_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/collection_sharding_state.h')
-rw-r--r--src/mongo/db/s/collection_sharding_state.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/s/collection_sharding_state.h b/src/mongo/db/s/collection_sharding_state.h
index 7af282f3463..c3e6861b71f 100644
--- a/src/mongo/db/s/collection_sharding_state.h
+++ b/src/mongo/db/s/collection_sharding_state.h
@@ -79,6 +79,10 @@ public:
// is being migrated out. (Not to be confused with "fromMigrate", which tags operations
// that are steps in performing the migration.)
bool isMigrating;
+
+ // For verifying the protocol used by OpObserver that aboutToDelete must be called before
+ // onDelete. Set by the OpObserverImpl::aboutToDelete and cleared by onDelete.
+ bool aboutToDeleteCalled;
};
DeleteState makeDeleteState(BSONObj const& doc);