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 Nov 23, 2024
1 parent 470eb77 commit 2efae1a
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 2efae1a

Please sign in to comment.