]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os: remove redundant cleanup
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 4 Jan 2016 07:14:08 +0000 (15:14 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 4 Jan 2016 07:14:08 +0000 (15:14 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/kstore/KStore.cc

index ec7b5e14e493c1956dfccabc0906d69d49cc2f67..dae508b1adb6ffbe5aaf0b27753185e1e20cf4ea 100644 (file)
@@ -855,8 +855,6 @@ int KStore::_open_db(bool create)
                          fn);
   if (!db) {
     derr << __func__ << " error creating db" << dendl;
-    delete db;
-    db = NULL;
     return -EIO;
   }
   string options;