@@ -169,8 +169,8 @@ class FastAppendTest : public UpdateTestBase {
169169
170170 Result<std::vector<ManifestFile>> CurrentDataManifests () {
171171 ICEBERG_ASSIGN_OR_RAISE (auto snapshot, table_->current_snapshot ());
172- SnapshotCache snapshot_cache (snapshot.get ());
173- ICEBERG_ASSIGN_OR_RAISE (auto manifests, snapshot_cache .DataManifests (file_io_));
172+ SnapshotReader snapshot_reader (snapshot.get ());
173+ ICEBERG_ASSIGN_OR_RAISE (auto manifests, snapshot_reader .DataManifests (file_io_));
174174 return std::vector<ManifestFile>(manifests.begin (), manifests.end ());
175175 }
176176
@@ -383,8 +383,8 @@ TEST_F(FastAppendTest, CommitFailureIgnoresCleanupDeleteFailure) {
383383 });
384384 ASSERT_THAT (append->Commit (), IsOk ());
385385 ICEBERG_UNWRAP_OR_FAIL (auto snapshot, txn->current ().Snapshot ());
386- SnapshotCache cache (snapshot.get ());
387- ICEBERG_UNWRAP_OR_FAIL (auto manifests, cache .Manifests (file_io_));
386+ SnapshotReader snapshot_reader (snapshot.get ());
387+ ICEBERG_UNWRAP_OR_FAIL (auto manifests, snapshot_reader .Manifests (file_io_));
388388 ASSERT_THAT (manifests, ::testing::SizeIs (1 ));
389389 EXPECT_TRUE (deleted_paths.empty ());
390390
@@ -448,8 +448,8 @@ TEST_F(FastAppendTest, RebaseCopiesAppendManifestAgain) {
448448 ASSERT_THAT (properties->Commit (), IsOk ());
449449 }
450450 ICEBERG_UNWRAP_OR_FAIL (auto snapshot, txn->current ().Snapshot ());
451- SnapshotCache cache (snapshot.get ());
452- ICEBERG_UNWRAP_OR_FAIL (auto manifests, cache .DataManifests (file_io_));
451+ SnapshotReader snapshot_reader (snapshot.get ());
452+ ICEBERG_UNWRAP_OR_FAIL (auto manifests, snapshot_reader .DataManifests (file_io_));
453453 ASSERT_THAT (manifests, ::testing::SizeIs (1 ));
454454 const auto & manifest_path = manifests[0 ].manifest_path ;
455455 EXPECT_NE (manifest_path, path);
@@ -1076,8 +1076,8 @@ TEST_F(FastAppendTest, TransientConflictThenUnknownPreservesInitialAttempt) {
10761076 EXPECT_TRUE (deleted_paths.empty ());
10771077 ICEBERG_UNWRAP_OR_FAIL (auto snapshot, txn->current ().Snapshot ());
10781078 EXPECT_THAT (file_io_->ReadFile (snapshot->manifest_list , std::nullopt ), IsOk ());
1079- SnapshotCache cache (snapshot.get ());
1080- ICEBERG_UNWRAP_OR_FAIL (auto manifests, cache .Manifests (file_io_));
1079+ SnapshotReader snapshot_reader (snapshot.get ());
1080+ ICEBERG_UNWRAP_OR_FAIL (auto manifests, snapshot_reader .Manifests (file_io_));
10811081 ASSERT_EQ (manifests.size (), 1U );
10821082 EXPECT_THAT (file_io_->ReadFile (manifests[0 ].manifest_path , std::nullopt ), IsOk ());
10831083 EXPECT_THAT (txn->Abort (), IsError (ErrorKind::kValidationFailed ));
@@ -1323,8 +1323,8 @@ TEST_F(FastAppendTest, ReplayFailurePartwayThroughCleansAllUncommittedGeneration
13231323 auto metadata = ReloadMetadata ();
13241324 for (const auto & snapshot : metadata->snapshots ) {
13251325 committed_paths.insert (snapshot->manifest_list );
1326- SnapshotCache cache (snapshot.get ());
1327- ICEBERG_UNWRAP_OR_FAIL (auto manifests, cache .Manifests (file_io_));
1326+ SnapshotReader snapshot_reader (snapshot.get ());
1327+ ICEBERG_UNWRAP_OR_FAIL (auto manifests, snapshot_reader .Manifests (file_io_));
13281328 for (const auto & manifest : manifests) {
13291329 committed_paths.insert (manifest.manifest_path );
13301330 }
0 commit comments