We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 811f297 commit 64f6b5dCopy full SHA for 64f6b5d
src/os/bluestore/BlueStore.cc
@@ -6600,7 +6600,7 @@ int BlueStore::_read_bdev_label(
6600
dout(10) << __func__ << " position=0x" << std::hex << disk_position << std::dec << dendl;
6601
ceph_assert(bdev);
6602
bufferlist bl;
6603
- unique_ptr<char> buf(new char[BDEV_LABEL_BLOCK_SIZE]);
+ unique_ptr<char[]> buf(new char[BDEV_LABEL_BLOCK_SIZE]);
6604
uint64_t dev_size = bdev->get_size();
6605
if (dev_size < disk_position + BDEV_LABEL_BLOCK_SIZE) {
6606
dout(10) << __func__ << " position=0x" << std::hex << disk_position
0 commit comments