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

oknet 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 d003e8d  Fix for() loop, correctly calculate the value of seg_in_use 
within Vol::dir_check()
d003e8d is described below

commit d003e8d4b6549589ea83016e54958de0a0daeb55
Author: Oknet Xu <xuc...@skyguard.com.cn>
AuthorDate: Thu Mar 7 15:49:07 2019 +0800

    Fix for() loop, correctly calculate the value of seg_in_use within 
Vol::dir_check()
---
 iocore/cache/CacheDir.cc | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/iocore/cache/CacheDir.cc b/iocore/cache/CacheDir.cc
index 427ce31..109538f 100644
--- a/iocore/cache/CacheDir.cc
+++ b/iocore/cache/CacheDir.cc
@@ -1267,10 +1267,6 @@ int Vol::dir_check(bool /* fix ATS_UNUSED */) // TODO: 
we should eliminate this
             ++frag_demographics[dir_size(e)][dir_big(e)];
           }
         }
-        e = next_dir(e, seg);
-        if (!e) {
-          break;
-        }
       }
 
       // Check for duplicates (identical tags in the same bucket).

Reply via email to