nostrdb

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

commit 84e4b0456359cbaa960fa46435c448ce9c12a983
parent b4f2ff1eda4358629c847446c5311cc4b5ab91dc
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  1 Jan 2024 09:40:22 -0800

fix: don't write the owned flag to the DB

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

diff --git a/src/nostrdb.c b/src/nostrdb.c @@ -2666,6 +2666,9 @@ static void ndb_write_blocks(struct ndb_txn *txn, uint64_t note_key, int rc; MDB_val key, val; + // make sure we're not writing the owned flag to the db + blocks->flags &= ~NDB_BLOCK_FLAG_OWNED; + key.mv_data = &note_key; key.mv_size = sizeof(note_key); val.mv_data = blocks;