From: Sage Weil Date: Tue, 22 Dec 2015 15:48:14 +0000 (-0500) Subject: os/bluestore/BlockDevice: fix path X-Git-Tag: v10.0.3~154^2~99 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e63dbdac75fc39edb48185646b57c8f4da25016b;p=ceph.git os/bluestore/BlockDevice: fix path Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlockDevice.cc b/src/os/bluestore/BlockDevice.cc index 55ba4528fe08..5e31ab792045 100644 --- a/src/os/bluestore/BlockDevice.cc +++ b/src/os/bluestore/BlockDevice.cc @@ -69,8 +69,9 @@ int BlockDevice::_lock() return 0; } -int BlockDevice::open(string path) +int BlockDevice::open(string p) { + path = p; int r = 0; dout(1) << __func__ << " path " << path << dendl; @@ -151,6 +152,7 @@ void BlockDevice::close() assert(fd_buffered >= 0); VOID_TEMP_FAILURE_RETRY(::close(fd_buffered)); fd_buffered = -1; + path.clear(); } int BlockDevice::flush()