diff --git a/src/main/java/com/actiontech/dble/btrace/provider/SlowLogProvider.java b/src/main/java/com/actiontech/dble/btrace/provider/SlowLogProvider.java new file mode 100644 index 0000000000..84111302c1 --- /dev/null +++ b/src/main/java/com/actiontech/dble/btrace/provider/SlowLogProvider.java @@ -0,0 +1,9 @@ +package com.actiontech.dble.btrace.provider; + +public final class SlowLogProvider { + private SlowLogProvider() { + } + + public static void setShardingNodes() { + } +} diff --git a/src/main/java/com/actiontech/dble/server/trace/TraceResult.java b/src/main/java/com/actiontech/dble/server/trace/TraceResult.java index 1b5482e944..482fa203b9 100644 --- a/src/main/java/com/actiontech/dble/server/trace/TraceResult.java +++ b/src/main/java/com/actiontech/dble/server/trace/TraceResult.java @@ -10,6 +10,7 @@ import com.actiontech.dble.backend.mysql.nio.handler.query.DMLResponseHandler; import com.actiontech.dble.backend.mysql.nio.handler.query.impl.BaseSelectHandler; import com.actiontech.dble.backend.mysql.nio.handler.query.impl.OutputHandler; +import com.actiontech.dble.btrace.provider.SlowLogProvider; import com.actiontech.dble.plan.util.ComplexQueryPlanUtil; import com.actiontech.dble.plan.util.ReferenceHandlerInfo; import com.actiontech.dble.route.RouteResultsetNode; @@ -127,6 +128,7 @@ public void setShardingNodes(RouteResultsetNode[] shardingNodes) { System.arraycopy(this.shardingNodes, 0, tempShardingNodes, 0, this.shardingNodes.length); System.arraycopy(shardingNodes, 0, tempShardingNodes, this.shardingNodes.length, shardingNodes.length); this.shardingNodes = tempShardingNodes; + SlowLogProvider.setShardingNodes(); if (LOGGER.isDebugEnabled()) { LOGGER.debug("append to existing shardingNodes,current size is " + this.shardingNodes.length); }