]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: fixed signedness
authorSage Weil <sage@newdream.net>
Fri, 9 May 2008 21:36:44 +0000 (14:36 -0700)
committerSage Weil <sage@newdream.net>
Fri, 9 May 2008 21:36:44 +0000 (14:36 -0700)
src/client/Client.h
src/mds/IdAllocator.cc

index 06979a5824522fc135f9f8580b81291d6d554476..30d2ec7a16776558c551e09f576737711e732426 100644 (file)
@@ -128,7 +128,7 @@ class Dir {
 class InodeCap {
  public:
   int  caps;
-  long seq;
+  unsigned seq;
   InodeCap() : caps(0), seq(0) {}
 };
 
index 3880aa4d85372337aafdd6bfc28f762cc91f8c53..408fac57c1b35fc024c886e7dbefdbda957cd60a 100644 (file)
@@ -139,8 +139,8 @@ void IdAllocator::reset()
   uint64_t end = ((uint64_t)(mds->get_nodeid()+2) << 40) - 1;
 //#else
 //# warning this looks like a 32-bit system, using small inode numbers.
-  uint64_t start = (uint64_t)(mds->get_nodeid()+1) << 25;
-  uint64_t end = ((uint64_t)(mds->get_nodeid()+2) << 25) - 1;
+//  uint64_t start = (uint64_t)(mds->get_nodeid()+1) << 25;
+//  uint64_t end = ((uint64_t)(mds->get_nodeid()+2) << 25) - 1;
 //#endif
   free.insert(start, end);