perf(uploadstore): use deletewithstamp instead and tag deletion case …#5032
perf(uploadstore): use deletewithstamp instead and tag deletion case …#5032
Conversation
|
When testing deferred uploads and deleting the tag used( in the stage where the BMT is constructed), I then do NOT see any logs that show pushsync is pushing chunks. There my by some weird cases when testing deferred uploads and deleting in the process the tag that is used. |
|
Whith the latest
With the latest change( |
|
Even if previous change seems to fix the issue, I get another one when testing: The file seems to be uploaded in the end, I can download it, but the messages show until each chunk is sent |
this is libp2p related though. |
…cleanup
Checklist
Description
internal.Uploadstore now uses
DeleteWithStampas the regular Delete does an internal load of the stamp, which is unnecessary in this case.Also, removed the assignment of zero as tagID to the uploadItem in the case that the tag is missing. The item eventually get removed when the chunk is synced, so there is no need to the extra Put operation.
Open API Spec Version Changes (if applicable)
Motivation and Context (Optional)
Related Issue (Optional)
Screenshots (if appropriate):