]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: fix getattrs return value
authorSage Weil <sage@newdream.net>
Wed, 29 Oct 2008 21:59:21 +0000 (14:59 -0700)
committerSage Weil <sage@newdream.net>
Wed, 29 Oct 2008 21:59:21 +0000 (14:59 -0700)
src/os/FileStore.cc

index 933f43be3e9d9ed3947a603f27ba0a57264e76a4..c54099d4b012db13389f74a85c9a75561cb474d7 100644 (file)
@@ -1508,8 +1508,6 @@ int FileStore::_getattr(const char *fn, const char *name, bufferptr& bp)
 
 int FileStore::_getattrs(const char *fn, map<string,bufferptr>& aset) 
 {
-  int r;
-
   // get attr list
   char names1[100];
   char *name = names1;
@@ -1535,7 +1533,7 @@ int FileStore::_getattrs(const char *fn, map<string,bufferptr>& aset)
   }
 
   delete names2;
-  return r;
+  return 0;
 }
 
 // objects