You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ig...@apache.org on 2012/09/21 12:04:40 UTC
[20/21] git commit: TS-1319: Fix cache sizes > 16TB
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 <Ja...@cable.comcast.com>
Authored: Thu Jul 12 20:43:56 2012 -0700
Committer: Igor Galić <i....@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;