summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction_resources.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/transaction_resources.h')
-rw-r--r--src/mongo/db/transaction_resources.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/transaction_resources.h b/src/mongo/db/transaction_resources.h
index a0a03c8799c..57b3f87b0f6 100644
--- a/src/mongo/db/transaction_resources.h
+++ b/src/mongo/db/transaction_resources.h
@@ -49,6 +49,11 @@ struct PlacementConcern {
};
struct AcquisitionPrerequisites {
+ // Pretends that the collection is unsharded. Acquisitions with this PlacementConcern will have
+ // always have UNSHARDED description and filter, even if they are sharded. Only for use in
+ // internal code paths that require it. Possible data loss if used incorrectly!
+ static const PlacementConcern kPretendUnsharded;
+
enum PlacementConcernPlaceholder {
/**
* Special PlacementConcern which mimics direct connection to a shard, causing the