Skip to content

Commit

Permalink
search: make sure we break instead of return
Browse files Browse the repository at this point in the history
so the cursor has a chance to close
  • Loading branch information
jb55 committed Dec 2, 2023
1 parent a3915f8 commit 3052a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nostrdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2670,7 +2670,7 @@ int ndb_text_search(struct ndb_txn *txn, const char *query,

// reposition the cursor so we can continue
if (mdb_cursor_get(cursor, &k, &v, MDB_SET_RANGE))
return 0;
break;

op = order_op;
} else {
Expand Down

0 comments on commit 3052a7c

Please sign in to comment.