Signed-off-by: Kefu Chai <kchai@redhat.com>
}
r = _open_db_and_around(true);
+ if (r < 0) {
+ return r;
+ }
if (id == BlueFS::BDEV_NEWWAL) {
string p = path + "/block.wal";
}
int r = _open_db_and_around(true);
+ if (r < 0) {
+ return r;
+ }
uint64_t used_space = 0;
for(auto src_id : devs_source) {
const string& dev_path)
{
dout(10) << __func__ << " path " << dev_path << " id:" << id << dendl;
- int r;
ceph_assert(path_fd < 0);
ceph_assert(id == BlueFS::BDEV_NEWWAL || id == BlueFS::BDEV_NEWDB);
return -EIO;
}
- r = _open_db_and_around(true);
+ int r = _open_db_and_around(true);
+ if (r < 0) {
+ return r;
+ }
string link_db;
string link_wal;