]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
64bit?
authorsage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Sat, 26 Aug 2006 03:37:47 +0000 (03:37 +0000)
committersage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Sat, 26 Aug 2006 03:37:47 +0000 (03:37 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@818 29311d96-e01e-0410-9327-a35deaab8ce9

ceph/common/LogType.h

index 4ec1e50eed084a5621b76a3f60904a3261c99f93..30291acdb971f92ddcdf0b0faab2a0cd755dd2dc 100644 (file)
@@ -29,7 +29,7 @@ using namespace __gnu_cxx;
 
 class LogType {
  protected:
-  hash_map<__uint32_t, int> keymap;  
+  hash_map<__uint64_t, int> keymap;  
   vector<const char*>   keys;
   set<int>              inc_keys;
 
@@ -38,7 +38,7 @@ class LogType {
   // HACK to avoid the hash table as often as possible...
   // cache recent key name lookups in a small ring buffer
   const static int cache_keys = 10;
-  __uint32_t kc_ptr[cache_keys];
+  __uint64_t kc_ptr[cache_keys];
   int kc_val[cache_keys];
   int kc_pos;
 
@@ -59,7 +59,7 @@ class LogType {
        i = keys.size();
        keys.push_back(key);
 
-       __uint32_t p = (__uint32_t)key;
+       __uint64_t p = (__uint64_t)key;
        keymap[p] = i;
        if (is_inc) inc_keys.insert(i);
 
@@ -78,7 +78,7 @@ class LogType {
   }
 
   int lookup_key(const char* key) {
-       __uint32_t p = (__uint32_t)key;
+       __uint64_t p = (__uint64_t)key;
 
        if (keymap.count(p)) 
          return keymap[p];