damus

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

commit 76aa1d34505fe844bebef72e867bec677d710243
parent fa0d5e7d03eb8d46bddf77a11a4c6285ad199b4e
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 29 Nov 2023 12:03:09 -0800

nostrdb/db: remove the DUPFIXED flag from the fulltext db

I don't think this technically makes any sense

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

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

diff --git a/nostrdb/nostrdb.c b/nostrdb/nostrdb.c @@ -3044,7 +3044,8 @@ static int ndb_init_lmdb(const char *filename, struct ndb_lmdb *lmdb, size_t map } mdb_set_compare(txn, lmdb->dbs[NDB_DB_NOTE_KIND], ndb_u64_tsid_compare); - if ((rc = mdb_dbi_open(txn, "note_text", tsid_flags, &lmdb->dbs[NDB_DB_NOTE_TEXT]))) { + if ((rc = mdb_dbi_open(txn, "note_text", MDB_CREATE | MDB_DUPSORT, + &lmdb->dbs[NDB_DB_NOTE_TEXT]))) { fprintf(stderr, "mdb_dbi_open id failed: %s\n", mdb_strerror(rc)); return 0; }