Skip to content

Commit

Permalink
Procedure: Fix ProcedureInfo on CN leader may decrease its procId (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Caideyipi authored Jun 11, 2024
1 parent e887ea0 commit ed3b4b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void upgrade() {
public TSStatus updateProcedure(UpdateProcedurePlan updateProcedurePlan) {
Procedure<ConfigNodeProcedureEnv> procedure = updateProcedurePlan.getProcedure();
procedureMap.put(procedure.getProcId(), procedure);
lastProcId.set(Math.max(lastProcId.get(), procedure.getProcId()));
lastProcId.updateAndGet(id -> Math.max(id, procedure.getProcId()));
return new TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode());
}

Expand Down

0 comments on commit ed3b4b7

Please sign in to comment.