]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: Fix of funny constructor misuse
authorAdam Kupczyk <akupczyk@ibm.com>
Fri, 2 Feb 2024 16:05:32 +0000 (16:05 +0000)
committerPere Diaz Bou <pere-altea@hotmail.com>
Fri, 23 Aug 2024 09:49:24 +0000 (11:49 +0200)
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit f6f5f898f1584b27b5b442a2cdc22d33226240f2)

src/os/bluestore/BlueStore.cc

index 745eeefed19b7185c6d5fc85287106c06dc08ce5..e9a7c761023d1b5be6b79657920dc15c4b52cbb3 100644 (file)
@@ -11388,7 +11388,7 @@ void BlueStore::inject_bluefs_file(std::string_view dir, std::string_view name,
   auto ret = bluefs->open_for_write(dir, name, &p_handle, false);
   ceph_assert(ret == 0);
 
-  std::string s('0', new_size);
+  std::string s(new_size, '0');
   bufferlist bl;
   bl.append(s);
   p_handle->append(bl);