]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os: FileStore::_destroy_collection may hide the real mistake.
authorRuifeng Yang <yangruifeng.09209@h3c.com>
Tue, 17 Nov 2015 03:18:27 +0000 (11:18 +0800)
committerSage Weil <sage@redhat.com>
Sun, 29 Nov 2015 14:27:05 +0000 (09:27 -0500)
Signed-off-by: Ruifeng Yang <yangruifeng.09209@h3c.com>
(cherry picked from commit 9e9770ca87720781264d2e283739fc9e197706c9)

src/os/FileStore.cc

index 5cbc4387bba7ff1c56a27b96e80abe00ca0f0042..3cfb13f1cefea371cfb43a3f19b30fec182ada29 100644 (file)
@@ -5010,7 +5010,7 @@ int FileStore::_destroy_collection(coll_t c)
   dout(15) << "_destroy_collection " << fn << dendl;
   {
     Index from;
-    int r = get_index(c, &from);
+    r = get_index(c, &from);
     if (r < 0)
       goto out;
     assert(NULL != from.index);