We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66a242 commit a3fb94cCopy full SHA for a3fb94c
src/mongo/client/dbclientcursor.cpp
@@ -325,9 +325,6 @@ namespace mongo {
325
}
326
327
DBClientCursor::~DBClientCursor() {
328
- if (!this)
329
- return;
330
-
331
DESTRUCTOR_GUARD (
332
333
if ( cursorId && _ownCursor && ! inShutdown() ) {
src/mongo/client/dbclientcursor.h
@@ -117,7 +117,7 @@ namespace mongo {
117
'dead' may be preset yet some data still queued and locally
118
available from the dbclientcursor.
119
*/
120
- bool isDead() const { return !this || cursorId == 0; }
+ bool isDead() const { return cursorId == 0; }
121
122
bool tailable() const { return (opts & QueryOption_CursorTailable) != 0; }
123
0 commit comments