Skip to content

Commit b9800ae

Browse files
committed
fix review
1 parent 073bcc1 commit b9800ae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/paimon/core/mergetree/levels_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-present Alibaba Inc.
2+
* Copyright 2026-present Alibaba Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/paimon/core/mergetree/lookup_levels.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ Status LookupLevels<T>::CreateSstFileFromDataFile(const std::shared_ptr<DataFile
214214
lookup_store_factory_->CreateWriter(fs_, kv_file_path, bloom_filter, pool_));
215215

216216
ScopeGuard write_guard([&]() -> void {
217-
[[maybe_unused]] auto status = fs_->Delete(kv_file_path, /*recursive=*/false);
217+
[[maybe_unused]] auto status = kv_writer->Close();
218+
reader->Close();
219+
[[maybe_unused]] auto delete_status = fs_->Delete(kv_file_path, /*recursive=*/false);
218220
});
219221

220222
// Read each KeyValue and write to lookup file with or without position.

0 commit comments

Comments
 (0)