Skip to content

Commit 63b976d

Browse files
yuhaijun999ketor
authored andcommitted
[fix][coordinator] Fixed job list bug. This bug will cause the coordinator to crash.
1 parent f8d0fc6 commit 63b976d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coordinator/coordinator_control_coor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6254,7 +6254,7 @@ bool CoordinatorControl::NeedAutoCleanJob(const pb::coordinator::Job& job,
62546254
return false;
62556255
}
62566256

6257-
for (int i = 0; i <= job.next_step(); i++) {
6257+
for (int i = 0; i < job.next_step(); i++) {
62586258
const auto& task = job.tasks(i);
62596259
for (const auto& store_operation : task.store_operations()) {
62606260
for (const auto& region_cmd : store_operation.region_cmds()) {

0 commit comments

Comments
 (0)