You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2014/07/14 18:20:25 UTC

git commit: TS-1475 - fix clang complaint for sync_cache_dir_on_shutdown

Repository: trafficserver
Updated Branches:
  refs/heads/3.2.x 3c6232753 -> 245b59ef0


TS-1475 - fix clang complaint for sync_cache_dir_on_shutdown


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

Branch: refs/heads/3.2.x
Commit: 245b59ef001d93f6beeb964e95cf9ae680a9071a
Parents: 3c62327
Author: Alan M. Carroll <am...@network-geographics.com>
Authored: Mon Jul 14 11:18:09 2014 -0500
Committer: Alan M. Carroll <am...@network-geographics.com>
Committed: Mon Jul 14 11:18:09 2014 -0500

----------------------------------------------------------------------
 iocore/cache/CacheDir.cc | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/245b59ef/iocore/cache/CacheDir.cc
----------------------------------------------------------------------
diff --git a/iocore/cache/CacheDir.cc b/iocore/cache/CacheDir.cc
index 13a3d34..fc804e8 100644
--- a/iocore/cache/CacheDir.cc
+++ b/iocore/cache/CacheDir.cc
@@ -906,6 +906,7 @@ sync_cache_dir_on_shutdown(void)
       continue;
     }
     size_t dirlen = vol_dirlen(d);
+    ink_assert(dirlen > 0); // make clang happy - if not > 0 the vol is seriously messed up.
     if (!d->header->dirty && !d->dir_sync_in_progress) {
       Debug("cache_dir_sync", "Dir %s: ignoring -- not dirty", d->hash_id);
       continue;