damus

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

commit 432cdb96d9a612416736a83bb96dec7975c197a3
parent f580c7dd93df2710a89b1934320f997fe971fc0e
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  1 Jan 2024 09:40:22 -0800

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

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

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

diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c @@ -2665,6 +2665,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;