trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject [20/21] git commit: TS-1319: Fix cache sizes > 16TB
Date Fri, 21 Sep 2012 10:04:40 GMT
TS-1319: Fix cache sizes > 16TB


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

Branch: refs/heads/3.2.x
Commit: b3ade24c111c99174584d1297c84c94ba0e739f1
Parents: b494372
Author: Jan Van Doorn <Jan_VanDoorn@cable.comcast.com>
Authored: Thu Jul 12 20:43:56 2012 -0700
Committer: Igor Galić <i.galic@brainsware.org>
Committed: Fri Sep 21 08:41:25 2012 +0200

----------------------------------------------------------------------
 iocore/cache/Cache.cc         |    6 +++---
 iocore/cache/P_CacheHosting.h |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b3ade24c/iocore/cache/Cache.cc
----------------------------------------------------------------------
diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc
index 22033b8..ad0fbf8 100644
--- a/iocore/cache/Cache.cc
+++ b/iocore/cache/Cache.cc
@@ -2357,11 +2357,11 @@ cplist_reconfigure()
         percent_remaining -= (config_vol->size < 128) ? 0 : config_vol->percent;
       }
       if (config_vol->size < 128) {
-        Warning("the size of volume %d (%d) is less than the minimum required volume size
%d",
-                config_vol->number, config_vol->size, 128);
+        Warning("the size of volume %d (%"PRId64") is less than the minimum required volume
size %d",
+                config_vol->number, (int64_t)config_vol->size, 128);
         Warning("volume %d is not created", config_vol->number);
       }
-      Debug("cache_hosting", "Volume: %d Size: %d", config_vol->number, config_vol->size);
+      Debug("cache_hosting", "Volume: %d Size: %"PRId64, config_vol->number, (int64_t)config_vol->size);
     }
     cplist_update();
     /* go through volume config and grow and create volumes */

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b3ade24c/iocore/cache/P_CacheHosting.h
----------------------------------------------------------------------
diff --git a/iocore/cache/P_CacheHosting.h b/iocore/cache/P_CacheHosting.h
index a281985..2f5c7e3 100644
--- a/iocore/cache/P_CacheHosting.h
+++ b/iocore/cache/P_CacheHosting.h
@@ -162,7 +162,7 @@ struct ConfigVol
 {
   int number;
   int scheme;
-  int size;
+  off_t size;
   bool in_percent;
   int percent;
   CacheVol *cachep;


Mime
View raw message