]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Standardize data field name in FileMap.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 7 Dec 2011 19:17:20 +0000 (20:17 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 7 Dec 2011 19:17:20 +0000 (20:17 +0100)
src/FileMap.h
src/filemap.cc

index 091952d3b00de9a1b1022a758f2929eae168d332..3167534cffd4a6065d811220093e33f14a723c7c 100644 (file)
@@ -83,7 +83,7 @@ public:
     int capacity() const {return capacity_;}
 
     /// return the number of used slots in the FileMap
-    int numFilesInMap() const {return used_slots_;}
+    int numFilesInMap() const {return usedSlots_;}
 private:
     /// grow the FileMap (size is doubled each time, up to 2^24 bits)
     void grow();
@@ -93,7 +93,7 @@ private:
     /// max number of files which can be tracked in the current store
     sfileno capacity_;
     /// used slots in the map
-    unsigned int used_slots_;
+    unsigned int usedSlots_;
     /// number of "long ints" making up the filemap
     unsigned int nwords;
     unsigned long *bitmap;
index 230985df361d51164ca94e1cb0a1bd3ce02ac610..ead311b6ff4053e60ae5e71efac020f08422c2f7 100644 (file)
@@ -55,7 +55,7 @@
 #define FM_INITIAL_NUMBER (1<<14)
 
 FileMap::FileMap() :
-    capacity_(FM_INITIAL_NUMBER), used_slots_(0),
+    capacity_(FM_INITIAL_NUMBER), usedSlots_(0),
     nwords(capacity_ >> LONG_BIT_SHIFT)
 {
     debugs(8, 3, HERE << "creating space for " << capacity_ << " files");
@@ -90,7 +90,7 @@ FileMap::setBit(sfileno file_number)
 
     bitmap[file_number >> LONG_BIT_SHIFT] |= bitmask;
 
-    used_slots_++;
+    usedSlots_++;
 
     return file_number;
 }
@@ -107,7 +107,7 @@ FileMap::clearBit(sfileno file_number)
 {
     unsigned long bitmask = (1L << (file_number & LONG_BIT_MASK));
     bitmap[file_number >> LONG_BIT_SHIFT] &= ~bitmask;
-    used_slots_--;
+    usedSlots_--;
 }
 
 bool