Compare commits

..

No commits in common. "aa95b72aa3aa489a10ac11bfcaedada2fbdb0d94" and "5df8e304c675662cc17f81af0b99481b14ca0114" have entirely different histories.

1 changed files with 1 additions and 11 deletions

View File

@ -538,13 +538,7 @@ class MongoClientInterface {
_id: objName,
},
update: {
$min: {
'value.versionId': params.versionId,
},
$setOnInsert: {
'_id': objName,
'value.isPHD': true,
},
_id: objName, value: mst,
},
upsert: true,
},
@ -717,13 +711,9 @@ class MongoClientInterface {
// if a PHD was created on put, compare latest version with
// the version id saved on PHD
if (options && options.action === 'put') {
console.log('\n==== IN ASYNC REPAIR ====')
console.log('RECEIVED ACTION PUT')
console.log(`${value.versionId} !== ${mst.versionId}`)
// if version id does not match, PHD has been replaced and
// we should ignore this repair
if (value.versionId !== mst.versionId) {
console.log('VERSION ID DOES NOT MATCH, IGNORE THIS REPAIR')
return undefined;
}
}