Skip to content

Commit

Permalink
fix: don't write the owned flag to the DB
Browse files Browse the repository at this point in the history
  • Loading branch information
jb55 committed Jan 1, 2024
1 parent b4f2ff1 commit 84e4b04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nostrdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 84e4b04

Please sign in to comment.