Skip to content

Commit

Permalink
Merge pull request #9576 from carlopi/fixci2
Browse files Browse the repository at this point in the history
HivePartition: Add also lock on partition_state
  • Loading branch information
Mytherin committed Nov 6, 2023
2 parents cb27693 + b4ce84f commit 60ddc31
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -122,6 +122,7 @@ SinkCombineResultType PhysicalCopyToFile::Combine(ExecutionContext &context, Ope
{
// create directories
lock_guard<mutex> global_lock(g.lock);
lock_guard<mutex> global_lock_on_partition_state(g.partition_state->lock);
const auto &global_partitions = g.partition_state->partitions;
// global_partitions have partitions added only at the back, so it's fine to only traverse the last part

Expand Down

0 comments on commit 60ddc31

Please sign in to comment.