deardeng commented on code in PR #68783:
URL: https://github.com/apache/doris/pull/68783#discussion_r4218247766
##########
fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudReplica.java:
##########
@@ -599,8 +605,16 @@ public long getIdx() {
return idx;
}
+ private static String shareClusterId(String clusterId) {
+ return SHARED_CLUSTER_IDS.intern(clusterId);
+ }
+
+ private static Long shareBackendId(Long backendId) {
+ return SHARED_BACKEND_IDS.intern(backendId);
+ }
+
public void updateClusterToPrimaryBe(String cluster, long beId) {
- primaryClusterToBackend.put(cluster, beId);
+ primaryClusterToBackend.put(shareClusterId(cluster),
shareBackendId(beId));
Review Comment:
use intern
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]