diff --git a/helio b/helio index f9e28c79d..dbc921329 160000 --- a/helio +++ b/helio @@ -1 +1 @@ -Subproject commit f9e28c79d3f9234ab0f094a7101cad8b5847c184 +Subproject commit dbc921329877019d156995a56941ae03b69ad87a diff --git a/src/server/tiering/disk_storage.cc b/src/server/tiering/disk_storage.cc index 9f187187f..bb687f9c9 100644 --- a/src/server/tiering/disk_storage.cc +++ b/src/server/tiering/disk_storage.cc @@ -86,9 +86,11 @@ error_code DiskStorage::Open(string_view path) { alloc_.AddStorage(0, kInitialSize); auto* up = static_cast(ProactorBase::me()); - if (int io_res = up->RegisterBuffers(absl::GetFlag(FLAGS_registered_buffer_size)); io_res < 0) - return error_code{-io_res, system_category()}; - + auto registered_buffer_size = absl::GetFlag(FLAGS_registered_buffer_size); + if (registered_buffer_size > 0) { + if (int io_res = up->RegisterBuffers(registered_buffer_size); io_res < 0) + return error_code{-io_res, system_category()}; + } return {}; }