Skip to content

Commit

Permalink
fix gcc build issue2
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxiBoether committed Jan 11, 2024
1 parent 6a19cbe commit 5ac8484
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modyn/storage/src/internal/grpc/storage_service_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,8 @@ std::vector<int64_t> 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 {};
}

Expand Down

0 comments on commit 5ac8484

Please sign in to comment.