You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2018/11/09 08:47:21 UTC

[incubator-skywalking] branch cluster-wrong-order created (now d6f1669)

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

wusheng pushed a change to branch cluster-wrong-order
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git.


      at d6f1669  Make compare right.

This branch includes the following new commits:

     new d6f1669  Make compare right.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-skywalking] 01/01: Make compare right.

Posted by wu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch cluster-wrong-order
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git

commit d6f16693c6f963fb27a7acb02a0cd10ab73f0e0f
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Fri Nov 9 16:47:10 2018 +0800

    Make compare right.
---
 .../org/apache/skywalking/oap/server/core/cluster/RemoteInstance.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/cluster/RemoteInstance.java b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/cluster/RemoteInstance.java
index a3b4e62..7b0d48f 100644
--- a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/cluster/RemoteInstance.java
+++ b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/cluster/RemoteInstance.java
@@ -37,7 +37,7 @@ public class RemoteInstance implements Comparable<RemoteInstance> {
     }
 
     @Override public int compareTo(RemoteInstance o) {
-        return toString().compareTo(toString());
+        return toString().compareTo(o.toString());
     }
 
     @Override public String toString() {