Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@

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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@
@Slf4j
public class StoreInfoMeta extends MetadataRocksDBStore {

private final PDConfig pdConfig;

public StoreInfoMeta(PDConfig pdConfig) {
super(pdConfig);
this.pdConfig = pdConfig;
// this.timeout = pdConfig.getDiscovery().getHeartbeatOutTimes();
}

Expand Down
Loading