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

Cleanup DBClientCursor error handling

    XMLWordPrintableJSON

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

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            daniel.alabi@10gen.com Daniel Alabi
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: