trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject [trafficserver] branch master updated: Corret the clear range when cache restart
Date Wed, 15 May 2019 01:05:41 GMT
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 <scw00@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(),


Mime
View raw message