Skip to content

Commit

Permalink
only return proper errors and only return err if not fetched via flush
Browse files Browse the repository at this point in the history
  • Loading branch information
DanEngelbrecht committed Jul 26, 2024
1 parent 0da507a commit dffebd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion remotestore/remotestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -845,12 +845,14 @@ func contentIndexWorker(
case <-flushMessages:
if err != nil {
flushReplyMessages <- err
err = nil
continue
}
if len(addedBlockIndexes) > 0 && accessType != ReadOnly {
newStoreIndex, err := addBlocksToRemoteStoreIndex(ctx, s, client, addedBlockIndexes)
if err != nil {
flushReplyMessages <- err
err = nil
continue
}
addedBlockIndexes = nil
Expand Down Expand Up @@ -919,7 +921,7 @@ func contentIndexWorker(
}
}

if err != nil {
if err != nil && !longtaillib.IsNotExist(err) {
storeIndex.Dispose()
return err
}
Expand Down

0 comments on commit dffebd6

Please sign in to comment.