mirror of
git://jb55.com/damus
synced 2024-09-05 21:03:51 +00:00
nostrdb/search: make sure we break instead of return
so the cursor has a chance to close Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
e537c7cef4
commit
06445de197
@ -2670,7 +2670,7 @@ int ndb_text_search(struct ndb_txn *txn, const char *query,
|
|||||||
|
|
||||||
// reposition the cursor so we can continue
|
// reposition the cursor so we can continue
|
||||||
if (mdb_cursor_get(cursor, &k, &v, MDB_SET_RANGE))
|
if (mdb_cursor_get(cursor, &k, &v, MDB_SET_RANGE))
|
||||||
return 0;
|
break;
|
||||||
|
|
||||||
op = order_op;
|
op = order_op;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user