refact(pd): remove redundant property in LogMeta & PartitionMeta (#2598)

Co-authored-by: V_Galaxy <vgalaxies@apache.org>
This commit is contained in:
haohao0103 2024-08-02 18:37:06 +08:00 committed by GitHub
parent 24ebe9da26
commit 3427f42b81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 6 deletions

View File

@ -25,11 +25,9 @@ import org.apache.hugegraph.pd.grpc.Metapb;
public class LogMeta extends MetadataRocksDBStore {
private final PDConfig pdConfig;
public LogMeta(PDConfig pdConfig) {
super(pdConfig);
this.pdConfig = pdConfig;
}
public void insertLog(Metapb.LogRecord record) throws PDException {

View File

@ -35,12 +35,10 @@ public class PartitionMeta extends MetadataRocksDBStore {
static String CID_GRAPH_ID_KEY = "GraphID";
static int CID_GRAPH_ID_MAX = 0xFFFE;
private final PDConfig pdConfig;
private final PartitionCache cache;
public PartitionMeta(PDConfig pdConfig) {
super(pdConfig);
this.pdConfig = pdConfig;
//this.timeout = pdConfig.getEtcd().getTimeout();
this.cache = new PartitionCache();
}

View File

@ -33,11 +33,9 @@ import lombok.extern.slf4j.Slf4j;
@Slf4j
public class StoreInfoMeta extends MetadataRocksDBStore {
private final PDConfig pdConfig;
public StoreInfoMeta(PDConfig pdConfig) {
super(pdConfig);
this.pdConfig = pdConfig;
// this.timeout = pdConfig.getDiscovery().getHeartbeatOutTimes();
}