diff options
author | nehakhatri5 <neha.khatri@mongodb.com> | 2018-08-09 10:39:59 +1000 |
---|---|---|
committer | nehakhatri5 <neha.khatri@mongodb.com> | 2018-08-14 09:28:13 +1000 |
commit | ad1107c0daf14c4d2a457bf6fd89d41efe58e5b4 (patch) | |
tree | 3ef6a807855065e872a47d9f11ca0a26f9cc1d45 /src/mongo/db/keys_collection_cache.cpp | |
parent | ab5cf1f214277536f1d4d2d1dc1fa319af911bbe (diff) | |
download | mongo-ad1107c0daf14c4d2a457bf6fd89d41efe58e5b4.tar.gz |
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.
Diffstat (limited to 'src/mongo/db/keys_collection_cache.cpp')
0 files changed, 0 insertions, 0 deletions