nostrdb/blocks: add total_size
Fix this mistake that we have with ndb_notes where we don't know the total size of the object Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
c2c73c3af6
commit
c831976078
+2
-1
@@ -19,7 +19,8 @@ struct ndb_blocks {
|
||||
uint32_t num_blocks;
|
||||
uint32_t blocks_size;
|
||||
// future expansion
|
||||
uint32_t reserved[2];
|
||||
uint32_t total_size;
|
||||
uint32_t reserved;
|
||||
unsigned char blocks[0]; // see ndb_block definition
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user