Skip to content

Commit 3314f21

Browse files
committed
fix possible dangling ref
1 parent 7c7f251 commit 3314f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Storages/MergeTree/ExportPartitionTaskScheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void ExportPartitionTaskScheduler::run()
4646
{
4747
const auto & manifest = entry.manifest;
4848
const auto key = entry.getCompositeKey();
49-
const auto & database = storage.getContext()->resolveDatabase(manifest.destination_database);
49+
const auto database = storage.getContext()->resolveDatabase(manifest.destination_database);
5050
const auto & table = manifest.destination_table;
5151

5252
/// No need to query zk for status if the local one is not PENDING

0 commit comments

Comments
 (0)