[CP] [CP] pkt-nio rpc add RPC_STAT and sync rpc add wait events

This commit is contained in:
obdev
2024-02-09 07:04:48 +00:00
committed by ob-robot
parent 8bc44950fe
commit 68638d77f1
7 changed files with 45 additions and 13 deletions

View File

@ -1610,7 +1610,7 @@ int ObInnerTableSchema::v_ob_rpc_incoming_schema(ObTableSchema &table_schema)
table_schema.set_collation_type(ObCharset::get_default_collation(ObCharset::get_default_charset()));
if (OB_SUCC(ret)) {
if (OB_FAIL(table_schema.set_view_definition(R"__( SELECT * FROM oceanbase.GV$OB_RPC_INCOMING )__"))) {
if (OB_FAIL(table_schema.set_view_definition(R"__( SELECT * FROM oceanbase.GV$OB_RPC_INCOMING WHERE SVR_IP=HOST_IP() AND SVR_PORT=RPC_PORT() )__"))) {
LOG_ERROR("fail to set view_definition", K(ret));
}
}

View File

@ -15795,6 +15795,10 @@ SELECT
*
FROM
oceanbase.GV$OB_RPC_INCOMING
WHERE
SVR_IP=HOST_IP()
AND
SVR_PORT=RPC_PORT()
""".replace("\n", " "),
)