Skip to content

Commit e5e2e24

Browse files
committed
fix build
1 parent a6ff6a7 commit e5e2e24

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,19 @@ void IcebergMetadata::backgroundMetadataPrefetcherThread()
258258
/// first, we fetch the latest metadata version and cache it;
259259
/// as a part of the same method, we download metadata.json of the latest metadata version
260260
/// and after parsing it, we fetch manifest lists, parse and cache them
261-
auto ctx = Context::getGlobalContextInstance()->getBackgroundContext();
261+
auto ctx = Context::createCopy(Context::getGlobalContextInstance());
262262
auto [actual_data_snapshot, actual_table_state_snapshot] = getRelevantState(ctx, true);
263263
if (actual_data_snapshot)
264264
{
265265
for (const auto & entry : actual_data_snapshot->manifest_list_entries)
266266
{
267267
/// second, we fetch, parse and cache each manifest file
268-
auto manifest_file_ptr = getManifestFileEntriesHandle(
269-
object_storage, persistent_components, ctx, log, entry, actual_table_state_snapshot.schema_id);
268+
auto manifest_file_ptr = Iceberg::getManifestFile(
269+
object_storage, persistent_components, ctx, log,
270+
entry.manifest_file_absolute_path,
271+
entry.added_sequence_number,
272+
entry.added_snapshot_id,
273+
*secondary_storages);
270274
}
271275
}
272276

0 commit comments

Comments
 (0)