Skip to content

Commit

Permalink
Update TableImpl.java
Browse files Browse the repository at this point in the history
  • Loading branch information
scottsand-db committed Nov 1, 2023
1 parent fe7630e commit f1cea94
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ public static Table forPath(TableClient tableClient, String path)

private final Path logPath;
private final Path dataPath;
private final SnapshotManager snapshotManager;

public TableImpl(Path logPath, Path dataPath) {
this.logPath = logPath;
this.dataPath = dataPath;
this.snapshotManager = new SnapshotManager();
}

@Override
public Snapshot getLatestSnapshot(TableClient tableClient) throws TableNotFoundException {
return new SnapshotManager().buildLatestSnapshot(tableClient, logPath, dataPath);
return snapshotManager.buildLatestSnapshot(tableClient, logPath, dataPath);
}
}

0 comments on commit f1cea94

Please sign in to comment.