Merge pull request #25419 from nikitamikhaylov/copier-sharding-key

Fix segfault when sharding_key is absent in config
This commit is contained in:
alexey-milovidov 2021-06-19 01:23:44 +03:00 committed by GitHub
commit d1348f2275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,7 +286,7 @@ inline TaskTable::TaskTable(TaskCluster & parent, const Poco::Util::AbstractConf
+ "." + escapeForFileName(table_push.first)
+ "." + escapeForFileName(table_push.second);
engine_push_str = config.getString(table_prefix + "engine");
engine_push_str = config.getString(table_prefix + "engine", "rand()");
{
ParserStorage parser_storage;