]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os:fix wrongly placed assert
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 4 Jan 2016 04:15:42 +0000 (12:15 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 4 Jan 2016 04:15:42 +0000 (12:15 +0800)
At present it will not be able to dump the current opened fds when an EMFILE error has encountered.

Fixes: #14176
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/keyvaluestore/KeyValueStore.cc

index 03c663a4feb453a2b43c219d82bc3c3286ae0dc8..2b0635808c8f6e266a5adcb72b52497aaae88fc5 100644 (file)
@@ -1589,11 +1589,12 @@ unsigned KeyValueStore::_do_transaction(Transaction& transaction,
         f.close_section();
         f.flush(*_dout);
         *_dout << dendl;
-        assert(0 == "unexpected error");
 
         if (r == -EMFILE) {
           dump_open_fds(g_ceph_context);
-        }
+        }      
+
+        assert(0 == "unexpected error");
       }
     }