You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "SolidWallOfCode (via GitHub)" <gi...@apache.org> on 2023/08/28 22:22:56 UTC

[GitHub] [trafficserver] SolidWallOfCode commented on a diff in pull request #10286: Abort a read when the disk is known to be bad

SolidWallOfCode commented on code in PR #10286:
URL: https://github.com/apache/trafficserver/pull/10286#discussion_r1308015368


##########
iocore/cache/Cache.cc:
##########
@@ -2193,6 +2193,11 @@ CacheVC::handleReadDone(int event, Event *e)
       }
       goto Ldone;
     }
+    if (DISK_BAD(vol->disk)) {
+      io.aio_result = -1;
+      Warning("Canceling cache read: disk is bad.");

Review Comment:
   Can we change this to use `vol->hash_text.get()` to indicate which disk is bad?
   `Warning("Canceling cache read: disk %s is bad.", vol->hash_text.get());`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org