From 5ac848495d6520119450c921a7575157b83476d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20B=C3=B6ther?= Date: Thu, 11 Jan 2024 17:00:28 +0100 Subject: [PATCH] fix gcc build issue2 --- modyn/storage/src/internal/grpc/storage_service_impl.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modyn/storage/src/internal/grpc/storage_service_impl.cpp b/modyn/storage/src/internal/grpc/storage_service_impl.cpp index 6bf9435f9..26d22c1d2 100644 --- a/modyn/storage/src/internal/grpc/storage_service_impl.cpp +++ b/modyn/storage/src/internal/grpc/storage_service_impl.cpp @@ -517,12 +517,8 @@ std::vector StorageServiceImpl::get_file_ids(soci::session& session, co // TODO(#362): We are almost excecuting the same query twice since we first count and then get the data const uint64_t number_of_files = get_file_count(session, dataset_id, start_timestamp, end_timestamp); - if (number_of_files == 0) { - return {}; - } - if (number_of_files < 0) { - SPDLOG_ERROR(fmt::format("Number of files for dataset {} is below zero: {}", dataset_id, number_of_files)); + if (number_of_files == 0) { return {}; }