You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by la...@apache.org on 2022/06/28 07:39:58 UTC

[incubator-pegasus] branch master updated: fix: drop unused task codes of AIO (#1021)

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

laiyingchun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new 7760170b5 fix: drop unused task codes of AIO (#1021)
7760170b5 is described below

commit 7760170b5715a6cfce1abbcfd16078fdc2529846
Author: Dan Wang <em...@126.com>
AuthorDate: Tue Jun 28 15:39:53 2022 +0800

    fix: drop unused task codes of AIO (#1021)
---
 rdsn/include/dsn/dist/replication/replication.codes.h |  4 ----
 src/server/config.ini                                 |  6 ------
 src/server/test/config.ini                            | 18 ------------------
 3 files changed, 28 deletions(-)

diff --git a/rdsn/include/dsn/dist/replication/replication.codes.h b/rdsn/include/dsn/dist/replication/replication.codes.h
index 2dfb13e61..2766d4a3a 100644
--- a/rdsn/include/dsn/dist/replication/replication.codes.h
+++ b/rdsn/include/dsn/dist/replication/replication.codes.h
@@ -55,8 +55,6 @@ DEFINE_THREAD_POOL_CODE(THREAD_POOL_SCAN)
 #define CURRENT_THREAD_POOL dsn::THREAD_POOL_DEFAULT
 MAKE_EVENT_CODE(LPC_REPLICA_SERVER_DELAY_START, TASK_PRIORITY_COMMON)
 MAKE_EVENT_CODE(LPC_MUTATION_LOG_PENDING_TIMER, TASK_PRIORITY_COMMON)
-MAKE_EVENT_CODE_AIO(LPC_ASYNC_READ_COMPLETE, TASK_PRIORITY_COMMON)
-MAKE_EVENT_CODE_AIO(LPC_ASYNC_WRITE_COMPLETE, TASK_PRIORITY_COMMON)
 MAKE_EVENT_CODE(LPC_REPLICA_STATE_CHANGE_NOTIFICATION, TASK_PRIORITY_COMMON)
 MAKE_EVENT_CODE_RPC(RPC_REPORT, TASK_PRIORITY_COMMON)
 MAKE_EVENT_CODE_RPC(RPC_TEST, TASK_PRIORITY_COMMON)
@@ -154,7 +152,6 @@ MAKE_EVENT_CODE(LPC_CHECKPOINT_REPLICA_COMPLETED, TASK_PRIORITY_HIGH)
 MAKE_EVENT_CODE(LPC_SIM_UPDATE_PARTITION_CONFIGURATION_REPLY, TASK_PRIORITY_COMMON)
 MAKE_EVENT_CODE_AIO(LPC_WRITE_REPLICATION_LOG, TASK_PRIORITY_HIGH)
 MAKE_EVENT_CODE(LPC_REPLICATION_ERROR, TASK_PRIORITY_HIGH)
-MAKE_EVENT_CODE_AIO(LPC_LERARN_REMOTE_DISK_STATE, TASK_PRIORITY_HIGH)
 MAKE_EVENT_CODE_RPC(RPC_CONFIG_PROPOSAL, TASK_PRIORITY_HIGH)
 MAKE_EVENT_CODE_RPC(RPC_QUERY_PN_DECREE, TASK_PRIORITY_HIGH)
 MAKE_EVENT_CODE_RPC(RPC_QUERY_REPLICA_INFO, TASK_PRIORITY_HIGH)
@@ -167,7 +164,6 @@ MAKE_EVENT_CODE_RPC(RPC_LEARN, TASK_PRIORITY_HIGH)
 MAKE_EVENT_CODE_RPC(RPC_LEARN_COMPLETION_NOTIFY, TASK_PRIORITY_HIGH)
 MAKE_EVENT_CODE_RPC(RPC_LEARN_ADD_LEARNER, TASK_PRIORITY_HIGH)
 MAKE_EVENT_CODE_RPC(RPC_REMOVE_REPLICA, TASK_PRIORITY_COMMON)
-MAKE_EVENT_CODE_AIO(LPC_REPLICA_COPY_LAST_CHECKPOINT_DONE, TASK_PRIORITY_COMMON)
 MAKE_EVENT_CODE_RPC(RPC_COLD_BACKUP, TASK_PRIORITY_COMMON)
 MAKE_EVENT_CODE_RPC(RPC_CLEAR_COLD_BACKUP, TASK_PRIORITY_COMMON)
 MAKE_EVENT_CODE(LPC_REPLICATION_COLD_BACKUP, TASK_PRIORITY_COMMON)
diff --git a/src/server/config.ini b/src/server/config.ini
index 14efe890a..206fc0762 100644
--- a/src/server/config.ini
+++ b/src/server/config.ini
@@ -477,9 +477,6 @@
 [task.LPC_REPLICATION_ERROR]
   ;is_profile = true
 
-[task.LPC_LERARN_REMOTE_DISK_STATE]
-  ;is_profile = true
-
 [task.RPC_CONFIG_PROPOSAL]
   ;is_profile = true
 
@@ -549,9 +546,6 @@
 [task.RPC_REPLICA_COPY_LAST_CHECKPOINT_ACK]
   ;is_profile = true
 
-[task.LPC_REPLICA_COPY_LAST_CHECKPOINT_DONE]
-  ;is_profile = true
-
 [task.RPC_COLD_BACKUP]
   ;is_profile = true
 
diff --git a/src/server/test/config.ini b/src/server/test/config.ini
index 3b49b871d..bc742fc0d 100644
--- a/src/server/test/config.ini
+++ b/src/server/test/config.ini
@@ -309,24 +309,6 @@ profiler::inqueue = false
 ;profiler::cancelled = false
 ;profiler::latency = false
 
-[task.LPC_ASYNC_READ_COMPLETE]
-is_profile = true
-profiler::inqueue = false
-;profiler::queue = false
-;profiler::exec = false
-;profiler::qps = false
-;profiler::cancelled = false
-;profiler::latency = false
-
-[task.LPC_ASYNC_WRITE_COMPLETE]
-is_profile = true
-profiler::inqueue = false
-;profiler::queue = false
-;profiler::exec = false
-;profiler::qps = false
-;profiler::cancelled = false
-;profiler::latency = false
-
 [task.LPC_AIO_IMMEDIATE_CALLBACK]
 is_trace = false
 allow_inline = false


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org