]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: fix lookup_hash request hash value
authorSage Weil <sage.weil@dreamhost.com>
Fri, 1 Apr 2011 18:23:17 +0000 (11:23 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 1 Apr 2011 18:24:14 +0000 (11:24 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/client/Client.cc

index c1735ba480fd99abad9479bde41b9f5988022187..314d44ee61832c0472c1b9ae8ab904bdd11f97df 100644 (file)
@@ -4530,7 +4530,7 @@ int Client::lookup_hash(inodeno_t ino, inodeno_t dirino, const char *name)
 
   uint32_t h = ceph_str_hash(CEPH_STR_HASH_RJENKINS, name, strlen(name));
   char f[30];
-  sprintf(f, "%d", h);
+  sprintf(f, "%u", h);
   filepath path2(dirino);
   path2.push_dentry(string(f));
   req->set_filepath2(path2);