Use 'toArray()' in addition to array access after 'find()' in rslib.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0, 4.4.10
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v4.4
    • 21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If we use coll.find().toArray()[0] instead of just coll.find()[0] then we will be able to catch the CappedPositionLost error as expected in getFirstOplogEntry().

      (This doesn't solve the direct cause of the bug in the linked ticket, but it will avoid the bug in the future.)

              Assignee:
              Hartek Sabharwal
              Reporter:
              Hana Pearlman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: