| 99 | } |
| 100 | |
| 101 | RWLockImpl::LockHolder StorageJoin::tryLockForCurrentQueryTimedWithContext(const RWLock & lock, RWLockImpl::Type type, ContextPtr context) |
| 102 | { |
| 103 | const String query_id = context ? context->getInitialQueryId() : RWLockImpl::NO_QUERY; |
| 104 | const std::chrono::milliseconds acquire_timeout |
| 105 | = context ? std::chrono::milliseconds(context->getSettingsRef()[Setting::lock_acquire_timeout].totalMilliseconds()) : std::chrono::seconds(DBMS_DEFAULT_LOCK_ACQUIRE_TIMEOUT_SEC); |
| 106 | return lock->getLock(type, query_id, acquire_timeout, false); |
| 107 | } |
| 108 | |
| 109 | SinkToStoragePtr StorageJoin::write(const ASTPtr & query, const StorageMetadataPtr & metadata_snapshot, ContextPtr context, bool /*async_insert*/) |
| 110 | { |
nothing calls this directly
no test coverage detected