nostrdb/fix: don't write the owned flag to the DB
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
f580c7dd93
commit
432cdb96d9
@@ -2665,6 +2665,9 @@ static void ndb_write_blocks(struct ndb_txn *txn, uint64_t note_key,
|
|||||||
int rc;
|
int rc;
|
||||||
MDB_val key, val;
|
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 = ¬e_key;
|
key.mv_data = ¬e_key;
|
||||||
key.mv_size = sizeof(note_key);
|
key.mv_size = sizeof(note_key);
|
||||||
val.mv_data = blocks;
|
val.mv_data = blocks;
|
||||||
|
|||||||
Reference in New Issue
Block a user