mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-18 20:57:56 +00:00
Don't fail in meshmb if we re-create the same index payload
This commit is contained in:
parent
3d2eb1c260
commit
c2526446ed
4
meshmb.c
4
meshmb.c
@ -467,8 +467,8 @@ int meshmb_flush(struct meshmb_feeds *feeds)
|
||||
|
||||
if (tree_walk(&feeds->root, NULL, 0, write_metadata, &write)==0){
|
||||
pstatus = rhizome_finish_write(&write);
|
||||
if (pstatus == RHIZOME_PAYLOAD_STATUS_NEW){
|
||||
|
||||
// follow -> ignore might end up with the same payload bytes
|
||||
if (pstatus == RHIZOME_PAYLOAD_STATUS_NEW || pstatus == RHIZOME_PAYLOAD_STATUS_STORED){
|
||||
rhizome_manifest_set_filehash(m, &write.id);
|
||||
rhizome_manifest_set_filesize(m, write.file_length);
|
||||
struct rhizome_bundle_result end_result = rhizome_manifest_finalise(m, &mout, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user