MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getManyCheckedForInsert

Method getManyCheckedForInsert

src/Client/ConnectionPoolWithFailover.cpp:176–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176std::vector<ConnectionPoolWithFailover::TryResult> ConnectionPoolWithFailover::getManyCheckedForInsert(
177 const ConnectionTimeouts & timeouts,
178 const Settings & settings,
179 PoolMode pool_mode,
180 const QualifiedTableName & table_to_check)
181{
182 TryGetEntryFunc try_get_entry = [&](const NestedPoolPtr & pool, std::string & fail_message)
183 { return tryGetEntry(pool, timeouts, fail_message, settings, &table_to_check, /*async_callback=*/ {}); };
184
185 return getManyImpl(settings, pool_mode, try_get_entry,
186 /*skip_unavailable_endpoints=*/ false, /// skip_unavailable_endpoints is used to get the min number of entries, and we need at least one
187 /*priority_func=*/ {},
188 settings[Setting::distributed_insert_skip_read_only_replicas]);
189}
190
191ConnectionPoolWithFailover::Base::GetPriorityFunc ConnectionPoolWithFailover::makeGetPriorityFunc(const Settings & settings)
192{

Callers 4

sendBatchMethod · 0.80
sendSeparateFilesMethod · 0.80
runWritingJobMethod · 0.80
processFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected