diff options
Diffstat (limited to 'db/query.cpp')
-rw-r--r-- | db/query.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/db/query.cpp b/db/query.cpp index 913a6612a5d..bfef39534fd 100644 --- a/db/query.cpp +++ b/db/query.cpp @@ -732,13 +732,11 @@ assert( debug.getN() < 5000 ); // more...so save a cursor ClientCursor *cc = new ClientCursor(); cc->c = c; - cursorid = allocCursorId(); - cc->cursorid = cursorid; + cursorid = cc->cursorid; cc->matcher = matcher; cc->ns = ns; cc->pos = n; cc->filter = filter; - ClientCursor::add(cc); cc->updateLocation(); } } |