You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zi...@apache.org on 2022/04/06 01:57:26 UTC

[dolphinscheduler] branch dev updated: fix task definition page info total count (#9354)

This is an automated email from the ASF dual-hosted git repository.

zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 4873ec8a45 fix task definition page info total count (#9354)
4873ec8a45 is described below

commit 4873ec8a457c4b36dfda281c490191123870c0eb
Author: Tq <ti...@gmail.com>
AuthorDate: Wed Apr 6 09:57:20 2022 +0800

    fix task definition page info total count (#9354)
---
 .../dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java     | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java
index c7a9c887be..48f86f9e8b 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java
+++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java
@@ -695,7 +695,6 @@ public class TaskDefinitionServiceImpl extends BaseServiceImpl implements TaskDe
                 });
             }
             taskMainInfoIPage.setRecords(Lists.newArrayList(taskMainInfoMap.values()));
-            taskMainInfoIPage.setTotal(taskMainInfoMap.values().size());
         }
         PageInfo<TaskMainInfo> pageInfo = new PageInfo<>(pageNo, pageSize);
         pageInfo.setTotal((int) taskMainInfoIPage.getTotal());