Uploaded image for project: 'Perl Driver'
  1. Perl Driver
  2. PERL-286

valid count 0 and error not distinguishable in count result

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: Perl driver
    • Labels:
      None
    • Story Points:
      0
    • Sprint:
      Perl Sprint 17

      Description

      The current implementation of Cursor::count does not allow to distinguish a 0 result from an error.

      In our case, the query coincided with a chunk move. The return document contained "ok" : 0, and a string for "errmsg". run_command returns the errormsg string. This in turn causes count to return 0.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              david.golden David Golden
              Reporter:
              jan Jan Anderssen
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: