Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-18296

Cleanup DBClientCursor error handling

    XMLWordPrintable

    Details

      Description

      In DBClientBase::query, if DBClientCursor can't be initialized, we return NULL. We should throw (perhaps, a UserException) instead.
      Once this is done, we can get rid of _safeCursor in cluster_client_internal.h.

      https://github.com/mongodb/mongo/blob/9bf7c1df8376377197f998f35566cc7e7f5ca03e/src/mongo/client/dbclient.cpp#L1007

        Attachments

          Activity

            People

            Assignee:
            backlog-server-platform Backlog - Platform Team
            Reporter:
            daniel.alabi@10gen.com Daniel Alabi
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: