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

Cleanup DBClientCursor error handling

      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

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

              Created:
              Updated: