Skip to content

Commit

Permalink
Don't fail in meshmb if we re-create the same index payload
Browse files Browse the repository at this point in the history
  • Loading branch information
lakeman committed Jun 26, 2018
1 parent 3d2eb1c commit c252644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meshmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c252644

Please sign in to comment.