Skip to content

Commit

Permalink
os/bluestore/bluestore-tool: fix error output
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Fedotov <[email protected]>
  • Loading branch information
ifed01 committed Jul 4, 2019
1 parent 47edbfd commit 9297d04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/os/bluestore/bluestore_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,6 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}

bool need_db = dev_target_id == BlueFS::BDEV_NEWDB;

BlueStore bluestore(cct.get(), path);
int r = bluestore.migrate_to_existing_bluefs_device(
src_dev_ids,
Expand All @@ -727,8 +725,9 @@ int main(int argc, char **argv)
}
}
} else {
bool need_db = dev_target_id == BlueFS::BDEV_DB;
cerr << "failed to migrate to existing BlueFS device: "
<< (need_db ? BlueFS::BDEV_DB : BlueFS::BDEV_DB)
<< (need_db ? BlueFS::BDEV_DB : BlueFS::BDEV_WAL)
<< " " << dev_target
<< cpp_strerror(r)
<< std::endl;
Expand Down

0 comments on commit 9297d04

Please sign in to comment.