You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sc...@apache.org on 2019/05/15 01:05:41 UTC

[trafficserver] branch master updated: Corret the clear range when cache restart

This is an automated email from the ASF dual-hosted git repository.

scw00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new ba2f3e1  Corret the clear range when cache restart
ba2f3e1 is described below

commit ba2f3e1eab440087a16129e3edbbe2de213fa3ba
Author: scw00 <sc...@apache.org>
AuthorDate: Tue May 14 06:30:38 2019 +0000

    Corret the clear range when cache restart
---
 iocore/cache/Cache.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc
index d28fa4c..98eb09b 100644
--- a/iocore/cache/Cache.cc
+++ b/iocore/cache/Cache.cc
@@ -1625,8 +1625,8 @@ Ldone : {
   if (clear_start <= clear_end) {
     dir_clear_range(clear_start, clear_end, this);
   } else {
-    dir_clear_range(clear_end, DIR_OFFSET_MAX, this);
-    dir_clear_range(1, clear_start, this);
+    dir_clear_range(clear_start, DIR_OFFSET_MAX, this);
+    dir_clear_range(1, clear_end, this);
   }
 
   Note("recovery clearing offsets of Vol %s : [%" PRIu64 ", %" PRIu64 "] sync_serial %d next %d\n", hash_text.get(),