Skip to content

Commit 592c63c

Browse files
github-actions[bot]dataroaringclaude
authored
branch-4.1: [opt](memory) Remove unused dbId field from CloudReplica #62079 (#62105)
Cherry-picked from #62079 Co-authored-by: Yongqiang YANG <yangyongqiang@selectdb.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent aa1bd29 commit 592c63c

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudReplica.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ public class CloudReplica extends Replica implements GsonPostProcessable {
5959
private ConcurrentHashMap<String, List<Long>> primaryClusterToBackends = null;
6060
@SerializedName(value = "be")
6161
private ConcurrentHashMap<String, Long> primaryClusterToBackend = new ConcurrentHashMap<>();
62-
@SerializedName(value = "dbId")
63-
private long dbId = -1;
6462
@SerializedName(value = "tableId")
6563
private long tableId = -1;
6664
@SerializedName(value = "partitionId")
@@ -105,7 +103,6 @@ public CloudReplica(ReplicaContext context) {
105103
public CloudReplica(long replicaId, Long backendId, ReplicaState state, long version, int schemaHash,
106104
long dbId, long tableId, long partitionId, long indexId, long idx) {
107105
super(replicaId, -1, state, version, schemaHash);
108-
this.dbId = dbId;
109106
this.tableId = tableId;
110107
this.partitionId = partitionId;
111108
this.indexId = indexId;
@@ -529,10 +526,6 @@ public boolean checkVersionCatchUp(long expectedVersion, boolean ignoreAlter) {
529526
return true;
530527
}
531528

532-
public long getDbId() {
533-
return dbId;
534-
}
535-
536529
public long getTableId() {
537530
return tableId;
538531
}

0 commit comments

Comments
 (0)