You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/08/12 01:57:01 UTC

[GitHub] [inlong] healchow commented on a diff in pull request #5500: [INLONG-5499][Manager] Fix the problem of data source is successfully configured, and the status is always issued and added

healchow commented on code in PR #5500:
URL: https://github.com/apache/inlong/pull/5500#discussion_r944059940


##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/AgentServiceImpl.java:
##########
@@ -192,6 +192,7 @@ private List<DataConfig> fetchNonFileTasks(TaskRequest taskRequest) {
             sourceEntity.setAgentIp(taskRequest.getAgentIp());
             sourceEntity.setUuid(taskRequest.getUuid());
             if (sourceMapper.updateByPrimaryKeySelective(sourceEntity) == 1) {
+                sourceEntity.setVersion(sourceEntity.getVersion() + 1);

Review Comment:
   Suggest changing to `++sourceEntity.getVersion()`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org