Skip to content

Commit

Permalink
SortedLedgerStorage supports multiple dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
lushiji committed Sep 17, 2022
1 parent fc85ce0 commit d201d74
Show file tree
Hide file tree
Showing 5 changed files with 183 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public class InterleavedLedgerStorage implements CompactableLedgerStorage, Entry
private OpStatsLogger getEntryStats;
private OpStatsLogger pageScanStats;
private Counter retryCounter;
private StateManager stateManager;

public InterleavedLedgerStorage() {
activeLedgers = new SnapshotMap<>();
Expand Down Expand Up @@ -161,7 +162,13 @@ void initializeWithEntryLogListener(ServerConfiguration conf,
}

@Override
public void setStateManager(StateManager stateManager) {}
public void setStateManager(StateManager stateManager) {
this.stateManager = stateManager;
}

public StateManager getStateManager() {
return stateManager;
}

@Override
public void setCheckpointSource(CheckpointSource checkpointSource) {
Expand Down
Loading

0 comments on commit d201d74

Please sign in to comment.