DATAMONGO-2572 - Remove usage of Oppressive Language.
Replaced blacklist with denylist and introduce meta keyword SECONDARY_READS as we no longer use MongoDB API with the initial replication concept.
Original Pull Request: #870
issue/DATAMONGO-2574
Mark Paluch6 years agocommitted byChristoph Strobl
@ -1172,7 +1172,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1172,7 +1172,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -3274,6 +3274,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -3274,6 +3274,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
casePARTIAL:
cursorToUse=cursorToUse.partial(true);
break;
caseSECONDARY_READS:
caseSLAVE_OK:
break;
default:
@ -3291,7 +3292,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -3291,7 +3292,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -3368,7 +3370,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -3368,7 +3370,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -2679,7 +2679,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -2679,7 +2679,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -3324,7 +3324,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -3324,7 +3324,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -41,18 +41,18 @@ public class PrefixingDelegatingAggregationOperationContext implements Aggregati
@@ -41,18 +41,18 @@ public class PrefixingDelegatingAggregationOperationContext implements Aggregati
@ -121,7 +121,7 @@ public class PrefixingDelegatingAggregationOperationContext implements Aggregati
@@ -121,7 +121,7 @@ public class PrefixingDelegatingAggregationOperationContext implements Aggregati
@ -139,9 +139,9 @@ public class PrefixingDelegatingAggregationOperationContext implements Aggregati
@@ -139,9 +139,9 @@ public class PrefixingDelegatingAggregationOperationContext implements Aggregati
returnprefixed;
}
privatebooleanisBlacklisted(Stringkey){
privatebooleanisDenied(Stringkey){
if(blacklist.contains(key)){
if(denylist.contains(key)){
returntrue;
}
@ -149,8 +149,8 @@ public class PrefixingDelegatingAggregationOperationContext implements Aggregati
@@ -149,8 +149,8 @@ public class PrefixingDelegatingAggregationOperationContext implements Aggregati
@ -434,7 +434,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
@@ -434,7 +434,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
<xsd:attributename="slave-ok"type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[
This controls if the driver is allowed to read from secondaries or slaves. Defaults to false.
This controls if the driver is allowed to read from secondaries or replicas. Defaults to false.
@ -432,7 +432,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
@@ -432,7 +432,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
<xsd:attributename="slave-ok"type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[
This controls if the driver is allowed to read from secondaries or slaves. Defaults to false.
This controls if the driver is allowed to read from secondaries or replicas. Defaults to false.
@ -531,7 +531,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
@@ -531,7 +531,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
<xsd:attributename="slave-ok"type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[
This controls if the driver is allowed to read from secondaries or slaves. Defaults to false.
This controls if the driver is allowed to read from secondaries or replicas. Defaults to false.
@ -531,7 +531,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
@@ -531,7 +531,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
<xsd:attributename="slave-ok"type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[
This controls if the driver is allowed to read from secondaries or slaves. Defaults to false.
This controls if the driver is allowed to read from secondaries or replicas. Defaults to false.
@ -447,7 +447,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
@@ -447,7 +447,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
<xsd:attributename="slave-ok"type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[
This controls if the driver is allowed to read from secondaries or slaves. Defaults to false.
This controls if the driver is allowed to read from secondaries or replicas. Defaults to false.
@ -462,7 +462,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
@@ -462,7 +462,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
<xsd:attributename="slave-ok"type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[
This controls if the driver is allowed to read from secondaries or slaves. Defaults to false.
This controls if the driver is allowed to read from secondaries or replicas. Defaults to false.
@ -480,7 +480,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
@@ -480,7 +480,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
<xsd:attributename="slave-ok"type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[
This controls if the driver is allowed to read from secondaries or slaves. Defaults to false.
This controls if the driver is allowed to read from secondaries or replicas. Defaults to false.
@ -498,7 +498,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
@@ -498,7 +498,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
<xsd:attributename="slave-ok"type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[
This controls if the driver is allowed to read from secondaries or slaves. Defaults to false.
This controls if the driver is allowed to read from secondaries or replicas. Defaults to false.
@ -531,7 +531,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
@@ -531,7 +531,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
<xsd:attributename="slave-ok"type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[
This controls if the driver is allowed to read from secondaries or slaves. Defaults to false.
This controls if the driver is allowed to read from secondaries or replicas. Defaults to false.
@ -537,7 +537,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
@@ -537,7 +537,7 @@ This controls whether or not to fsync. The 'fsync' option to the getlasterror c
<xsd:attributename="slave-ok"type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[
This controls if the driver is allowed to read from secondaries or slaves. Defaults to false.
This controls if the driver is allowed to read from secondaries or replicas. Defaults to false.
@ -1714,34 +1714,34 @@ public class MongoTemplateUnitTests extends MongoOperationsUnitTests {
@@ -1714,34 +1714,34 @@ public class MongoTemplateUnitTests extends MongoOperationsUnitTests {