]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Various fixes for Rock store unit tests.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 16 Oct 2011 04:01:39 +0000 (22:01 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 16 Oct 2011 04:01:39 +0000 (22:01 -0600)
Also some source maintenance updates.

doc/debug-sections.txt
src/Makefile.am
src/StoreStats.cc
src/StoreStats.h
src/fs/rock/RockSwapDir.cc

index 2af58f66bb10d12ee1da79edd8d099100cdcb2c2..abeb48eebe31a94dcb9b55f506b4ebc47c1b90d6 100644 (file)
@@ -41,6 +41,7 @@ section 20    Storage Manager
 section 20    Storage Manager Heap-based replacement
 section 20    Storage Manager Logging Functions
 section 20    Storage Manager MD5 Cache Keys
+section 20    Storage Manager Statistics
 section 20    Storage Manager Swapfile Metadata
 section 20    Storage Manager Swapfile Unpacker
 section 20    Storage Manager Swapin Functions
index b3569e86e367ff49147c0d289ef2fa617a32be67..d05445bab9f80ff611ad41bcfc61c9d53d44d2a6 100644 (file)
@@ -2730,6 +2730,8 @@ tests_testRock_SOURCES = \
        tests/stub_HttpRequest.cc \
        tests/stub_icp.cc \
        tests/stub_ipc.cc \
+       tests/stub_ipcache.cc \
+       tests/stub_libicmp.cc \
        tests/stub_MemStore.cc \
        tests/stub_mime.cc \
        tests/stub_Port.cc \
index ccf3290d22fadfc5e726ec6003a95f40ca024df7..6541542b19d41c5390c51b78c221b3cc917c0f4c 100644 (file)
@@ -19,7 +19,7 @@ StoreInfoStats::StoreInfoStats()
 
 StoreInfoStats &
 StoreInfoStats::operator +=(const StoreInfoStats &stats)
-{ 
+{
     swap.size += stats.swap.size;
     swap.capacity += stats.swap.capacity;
     swap.count += stats.swap.count;
index e9d05d8958827d57376e8907c35ad59bb0c50d4b..9be6f67a202c6ed44ccd0a2a17a9a04d49c751f0 100644 (file)
@@ -2,10 +2,12 @@
 #define SQUID_STORE_STATS_H
 
 /// High-level store statistics used by mgr:info action. Used inside PODs!
-class StoreInfoStats {
+class StoreInfoStats
+{
 public:
-    /// Info common to memory and disk parts of the storage. Used inside PODs! 
-    class Part {
+    /// Info common to memory and disk parts of the storage. Used inside PODs!
+    class Part
+    {
     public:
         double size; ///< bytes currently in use
         double count; ///< number of cached objects
@@ -19,13 +21,15 @@ public:
     };
 
     /// disk cache (all cache_dirs) storage stats
-    class Swap: public Part {
+    class Swap: public Part
+    {
     public:
         double open_disk_fd; ///< number of opened disk files
     };
 
     /// memory cache (cache_mem) storage stats
-    class Mem: public Part {
+    class Mem: public Part
+    {
     public:
         bool shared; ///< whether memory cache is shared among workers
     };
@@ -45,7 +49,8 @@ public:
 
 // TODO: this should be adjusted for use in StoreIoActionData, DiskdActionData
 /// Store statistics related to low-level I/O.
-class StoreIoStats {
+class StoreIoStats
+{
 public:
     StoreIoStats();
 
index e062b1dc3e25df7a5e630ad49358c808a562eac3..910239f109fb2635115b3ffd8dfb7a7257db7d87 100644 (file)
@@ -812,7 +812,7 @@ Rock::SwapDir::statfs(StoreEntry &e) const
 
 namespace Rock
 {
-    RunnerRegistrationEntry(rrAfterConfig, SwapDirRr);
+RunnerRegistrationEntry(rrAfterConfig, SwapDirRr);
 }
 
 void Rock::SwapDirRr::create(const RunnerRegistry &)