|
Author:
{'username': 'nehakhatri5', 'email': 'neha.khatri@mongodb.com', 'name': 'nehakhatri5'}
Message: SERVER-36546 Be more cautious with key comparision during cursor restore.
The new format unique indexes do include the record id in their
KeyStrings. This means that restoring to the same key with a new
record id should return false so that we will skip the key with the new
record-id. To enable this we compare the current key with the key
at the saved position. This comparision should be done only if the
saved key has a size greater than or equal to the key being compared.
Branch: master
https://github.com/mongodb/mongo/commit/ad1107c0daf14c4d2a457bf6fd89d41efe58e5b4
|