mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
nvme: identify command expiry separately from capacity pressure
This commit is contained in:
1 parent
8e546f7fe3
commit
e723a2a4fb
1 file changed
+1
-1
@@ -300,7 +300,7 @@ func (h *IOHandler) write(ctx context.Context, cmd IOCommand) IOResult {
|
||||
// must retain its terminal mapping even when the command deadline also passed.
|
||||
func mapWriteBudgetError(ctx context.Context, err error, op string) IOResult {
|
||||
if ctx.Err() == context.DeadlineExceeded && onlyDeadlineCause(err) {
|
||||
err = fmt.Errorf("%w: %w", frontend.ErrBackendBusy, err)
|
||||
return IOResult{SCT: SCTGeneric, SC: SCNamespaceNotReady, retryable: true, Reason: "command deadline on " + op + ": " + err.Error()}
|
||||
}
|
||||
return mapBackendError(err, op)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user