From 0b0489fadf7a68f837ff8d8c45eec3a03fd5a6e3 Mon Sep 17 00:00:00 2001 From: Dan Wang Date: Fri, 13 Dec 2024 00:27:20 +0800 Subject: [PATCH] fix comments and IWYU --- src/replica/replica_backup.cpp | 1 + src/shell/commands/duplication.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/replica/replica_backup.cpp b/src/replica/replica_backup.cpp index 3e8856bee1..1be16e30c0 100644 --- a/src/replica/replica_backup.cpp +++ b/src/replica/replica_backup.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include diff --git a/src/shell/commands/duplication.cpp b/src/shell/commands/duplication.cpp index 9169bd6dfe..3adc1b3668 100644 --- a/src/shell/commands/duplication.cpp +++ b/src/shell/commands/duplication.cpp @@ -192,7 +192,7 @@ void stat_dups(const ls_app_dups_map &app_states, uint32_t progress_gap, list_du } for (const auto &[partition_id, partition_state] : dup.partition_states) { - // A duplication could be "finished" only in the status of `DS_LOG`. + // Only in the status of `DS_LOG`could a duplication be considered as "finished". if (dup.status == duplication_status::DS_LOG) { if (partition_state.last_committed_decree < partition_state.confirmed_decree) { // This is unlikely to happen.