nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 99f5ff1d42fc08d62022fb8b1734681811257992
parent f443d0fdb9b14d8356e0b42806607ea6e49b8c43
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 26 Oct 2025 09:54:27 -0700

migrate: fix some migration error messages

these had wrong function names in them

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/nostrdb.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/nostrdb.c b/src/nostrdb.c @@ -1914,7 +1914,7 @@ static int ndb_rebuild_note_indices(struct ndb_txn *txn, enum ndb_dbs *indices, // ensure they are all index dbs for (i = 0; i < num_indices; i++) { if (!ndb_db_is_index(indices[i])) { - fprintf(stderr, "ndb_rebuild_note_index: %s is not an index db\n", ndb_db_name(indices[i])); + fprintf(stderr, "ndb_rebuild_note_indices: %s is not an index db\n", ndb_db_name(indices[i])); return -1; } } @@ -1923,13 +1923,13 @@ static int ndb_rebuild_note_indices(struct ndb_txn *txn, enum ndb_dbs *indices, for (i = 0; i < num_indices; i++) { index = indices[i]; if (mdb_drop(txn->mdb_txn, index, drop_dbi)) { - fprintf(stderr, "ndb_rebuild_pubkey_index: mdb_drop failed for %s\n", ndb_db_name(index)); + fprintf(stderr, "ndb_rebuild_note_indices: mdb_drop failed for %s\n", ndb_db_name(index)); return -1; } } if ((rc = mdb_cursor_open(txn->mdb_txn, txn->lmdb->dbs[NDB_DB_NOTE], &cur))) { - fprintf(stderr, "ndb_migrate_user_search_indices: mdb_cursor_open failed, error %d\n", rc); + fprintf(stderr, "ndb_rebuild_note_indices: mdb_cursor_open failed, error %d\n", rc); return -1; }