Skip to content

Commit

Permalink
Merge pull request #25702 from wjwithagen/wjw-fix-bluestore-warning
Browse files Browse the repository at this point in the history
bluestore: silence Clang warning on possible uninitialize usuage

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
  • Loading branch information
xiexingguo committed Dec 26, 2018
2 parents cebcf23 + b23220c commit 0ccdc79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5930,7 +5930,7 @@ int BlueStore::add_new_bluefs_device(int id, const string& dev_path)

r = _mount_for_bluefs();

int reserved;
int reserved = 0;
if (id == BlueFS::BDEV_NEWWAL) {
string p = path + "/block.wal";
r = _setup_block_symlink_or_file("block.wal", dev_path,
Expand Down

0 comments on commit 0ccdc79

Please sign in to comment.