diff options
author | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2021-05-05 20:12:00 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-14 19:07:16 +0000 |
commit | 47d99621851c0cd8da8d0628edeaa2f59bff6e14 (patch) | |
tree | c827d9bcbed0739bc2a421060182d00251825573 /src/mongo/db/pipeline/stage_constraints.h | |
parent | 97ff562f3379ce7e9a7da0c9eb249d35c34c03b1 (diff) | |
download | mongo-47d99621851c0cd8da8d0628edeaa2f59bff6e14.tar.gz |
SERVER-55964 Replace "blacklist" in all code and comments
Diffstat (limited to 'src/mongo/db/pipeline/stage_constraints.h')
-rw-r--r-- | src/mongo/db/pipeline/stage_constraints.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/stage_constraints.h b/src/mongo/db/pipeline/stage_constraints.h index 859a422ffe8..661b9954195 100644 --- a/src/mongo/db/pipeline/stage_constraints.h +++ b/src/mongo/db/pipeline/stage_constraints.h @@ -86,9 +86,9 @@ struct StageConstraints { /** * A ChangeStreamRequirement determines whether a particular stage is itself a ChangeStream * stage, whether it is allowed to exist in a $changeStream pipeline, or whether it is - * blacklisted from $changeStream. + * denylisted from $changeStream. */ - enum class ChangeStreamRequirement { kChangeStreamStage, kAllowlist, kBlacklist }; + enum class ChangeStreamRequirement { kChangeStreamStage, kAllowlist, kDenylist }; /** * A FacetRequirement indicates whether this stage may be used within a $facet pipeline. @@ -149,7 +149,7 @@ struct StageConstraints { TransactionRequirement transactionRequirement, LookupRequirement lookupRequirement, UnionRequirement unionRequirement, - ChangeStreamRequirement changeStreamRequirement = ChangeStreamRequirement::kBlacklist) + ChangeStreamRequirement changeStreamRequirement = ChangeStreamRequirement::kDenylist) : requiredPosition(requiredPosition), hostRequirement(hostRequirement), diskRequirement(diskRequirement), @@ -229,7 +229,7 @@ struct StageConstraints { * True if this stage is permitted to run in a pipeline which starts with $changeStream. */ bool isAllowedInChangeStream() const { - return changeStreamRequirement != ChangeStreamRequirement::kBlacklist; + return changeStreamRequirement != ChangeStreamRequirement::kDenylist; } /** |