commit dba2412f766da329063a773fc4a31f2f40b8b67d
parent 4274dd51d3911d1739f9816bc900ba7ca02713e4
Author: William Casarin <jb55@jb55.com>
Date: Wed, 29 Nov 2023 12:03:09 -0800
db: remove the DUPFIXED flag from the fulltext db
I don't think this technically makes any sense
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nostrdb.c b/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;
}