Skip to content

Commit 0d2870e

Browse files
committed
crimson/seastore: adapt _mkfs() to new coroutine::experimental::generator
Update use of experimental_list_directory() to match Seastar’s new generator. For more details see: scylladb/seastar@81f2dc9 Signed-off-by: Aishwarya Mathuria <[email protected]>
1 parent a5e8941 commit 0d2870e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/crimson/os/seastore/seastore.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,11 @@ Device::access_ertr::future<> SeaStore::_mkfs(uuid_d new_osd_fsid)
445445
// hmm?
446446
auto lister = rdir.experimental_list_directory();
447447
while (auto de = co_await lister()) {
448-
DEBUG("found file: {}", de->name);
449-
if (de->name.find("block.") == 0 && de->name.length() > 6 ) {
448+
auto& entry = de->get();
449+
DEBUG("found file: {}", entry.name);
450+
if (entry.name.find("block.") == 0 && entry.name.length() > 6 ) {
450451
// 6 for "block."
451-
std::string entry_name = de->name;
452+
std::string entry_name = entry.name;
452453
auto dtype_end = entry_name.find_first_of('.', 6);
453454
device_type_t dtype =
454455
string_to_device_type(

0 commit comments

Comments
 (0)