File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
lib/storage/metadata/mongoclient Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -856,16 +856,9 @@ class MongoClientInterface {
856856 // filter to get master
857857 const filter = {
858858 _id : masterKey ,
859- $or : [ {
860- 'value.versionId' : {
861- $exists : false ,
862- } ,
863- } ,
864- {
865- 'value.versionId' : {
866- $gt : objVal . versionId ,
867- } ,
868- } ,
859+ $or : [
860+ { 'value.versionId' : { $exists : false } } ,
861+ { 'value.versionId' : { $gt : objVal . versionId } } ,
869862 ] ,
870863 } ;
871864 // values to update master
@@ -1157,9 +1150,7 @@ class MongoClientInterface {
11571150 // ensure), but this would not work e.g. in
11581151 // the case of an active-active replication.
11591152
1160- { 'value.versionId' : {
1161- $gte : mstObjVal ! . versionId ,
1162- } } ,
1153+ { 'value.versionId' : { $gte : mstObjVal ! . versionId } } ,
11631154 ]
11641155 } ;
11651156 // values to update master
You can’t perform that action at this time.
0 commit comments