trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject [23/50] git commit: Revert "Make Store::n_disks unsigned"
Date Sat, 04 May 2013 15:30:44 GMT
Revert "Make Store::n_disks unsigned"

This reverts commit 0dc121c1fec369691c7fcafa807ea8b50b2f766e.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/880bca9b
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/880bca9b
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/880bca9b

Branch: refs/heads/sphinx-docs
Commit: 880bca9bf9aaeb264ac6335d947b1d9f3299103f
Parents: 8e60b9d
Author: James Peach <jpeach@apache.org>
Authored: Sat Apr 27 16:32:00 2013 -0700
Committer: James Peach <jpeach@apache.org>
Committed: Sat Apr 27 16:32:00 2013 -0700

----------------------------------------------------------------------
 iocore/cache/Cache.cc  |    3 ++-
 iocore/cache/I_Store.h |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/880bca9b/iocore/cache/Cache.cc
----------------------------------------------------------------------
diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc
index 580d49b..bc273d3 100644
--- a/iocore/cache/Cache.cc
+++ b/iocore/cache/Cache.cc
@@ -597,6 +597,7 @@ CacheProcessor::start_internal(int flags)
   start_internal_flags = flags;
   clear = !!(flags & PROCESSOR_RECONFIGURE) || auto_clear_flag;
   fix = !!(flags & PROCESSOR_FIX);
+  int i;
   start_done = 0;
   int diskok = 1;
 
@@ -609,7 +610,7 @@ CacheProcessor::start_internal(int flags)
   ink_aio_set_callback(new AIO_Callback_handler());
   Span *sd;
   config_volumes.read_config_file();
-  for (unsigned i = 0; i < theCacheStore.n_disks; i++) {
+  for (i = 0; i < theCacheStore.n_disks; i++) {
     sd = theCacheStore.disk[i];
     char path[PATH_NAME_MAX];
     int opts = DEFAULT_CACHE_OPTIONS;

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/880bca9b/iocore/cache/I_Store.h
----------------------------------------------------------------------
diff --git a/iocore/cache/I_Store.h b/iocore/cache/I_Store.h
index 32b24c4..55ea839 100644
--- a/iocore/cache/I_Store.h
+++ b/iocore/cache/I_Store.h
@@ -162,7 +162,7 @@ struct Store
   Store();
   ~Store();
 
-  unsigned n_disks;
+  int n_disks;
   Span **disk;
 
   //


Mime
View raw message