Skip to content

Commit 5ad8422

Browse files
authored
Merge pull request ClickHouse#77573 from azat/stateless-distributed
Make Distributed storage stateless compatible
2 parents 964edac + 3d81b87 commit 5ad8422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Storages/StorageDistributed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ SinkToStoragePtr StorageDistributed::write(const ASTPtr &, const StorageMetadata
951951
}
952952

953953
/// Force sync insertion if it is remote() table function
954-
bool insert_sync = settings[Setting::distributed_foreground_insert] || settings[Setting::insert_shard_id] || owned_cluster;
954+
bool insert_sync = settings[Setting::distributed_foreground_insert] || settings[Setting::insert_shard_id] || owned_cluster || relative_data_path.empty();
955955
auto timeout = settings[Setting::distributed_background_insert_timeout];
956956

957957
Names columns_to_send;

0 commit comments

Comments
 (0)