mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
- Remove `CurrentThread.h` from high-fan-out headers: `ProcessList.h`, `IQueryPlanStep.h`, `DDLWorker.h`, `TCPHandler.h`, `AggregatingTransform.h`, `ParallelParsingInputFormat.h`, `StorageTableFunction.h`, `parseSyslogLevel.h`, `EmbeddedRocksDBBulkSink.h`, `BlockIO.h`, `LocalConnection.h`, `StorageMaterializedView.h`, `HTTPHandler.h` - Extract `QueryScope` from `CurrentThread` into standalone `Common/QueryScope.h` with its own `.cpp`, replacing the nested `CurrentThread::QueryScope` class - Extract `getCurrentThreadGroup` free function into `Common/ThreadGroupSwitcher.h`, replacing `CurrentThread::getGroup()` in template headers: `threadPoolCallbackRunner.h`, `ParallelFormattingOutputFormat.h`, `HashedDictionaryParallelLoader.h`, `UniqExactSet.h`, `HashedDictionary.h`, `StatusRequestsPool.h` - De-inline `MemoryTrackerSwitcher` ctor/dtor into `MemoryTrackerSwitcher.cpp` - De-inline `ResourceGuard::Request::wait` into `ResourceGuard.cpp` - De-inline `ManyAggregatedData` destructor into `AggregatingTransform.cpp` - De-inline `QueryStatus::updateProgressIn/Out` into `ProcessList.cpp` - Add explicit `CurrentThread.h` includes to `.cpp` files that relied on transitive includes through the trimmed headers Co-Authored-By: Claude Opus 4.6 <[email protected]>