damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 06445de1975a1f19acc03dbde83df95ea7bd75ac
parent e537c7cef4253cccabd3b2ae06d91058134c70f7
Author: William Casarin <jb55@jb55.com>
Date:   Fri,  1 Dec 2023 17:14:16 -0800

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>

Diffstat:
Mnostrdb/nostrdb.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nostrdb/nostrdb.c b/nostrdb/nostrdb.c @@ -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 {