Skip to content

Commit

Permalink
ns
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Sep 3, 2024
1 parent cdfc4fe commit 9712640
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/org/jgroups/protocols/TP.java
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ else if(policy.startsWith("unbatch"))

/* --------------------------------------------- JMX ---------------------------------------------- */
@Component(name="msg_stats")
protected final MsgStats msg_stats=new MsgStats().enable(stats);
protected final MsgStats msg_stats=new MsgStats();

/** The name of the group to which this member is connected. With a shared transport, the channel name is
* in TP.ProtocolAdapter (cluster_name), and this field is not used */
Expand Down Expand Up @@ -806,6 +806,10 @@ public String toString() {
bundler.init(this);
}
rtt.init(this);
// When stats is false, we'll set msg_stats.enabled to false, too. However, msg_stats.enabled=false can be
// set to false even if stats is true
if(!stats)
msg_stats.enable(false);
}


Expand Down

0 comments on commit 9712640

Please sign in to comment.