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

Method addMutation

src/Interpreters/MergeTreeTransaction.cpp:172–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void MergeTreeTransaction::addMutation(const StoragePtr & table, const String & mutation_id)
173{
174 checkNotOrdinaryDatabase(table);
175 std::lock_guard lock{mutex};
176 checkIsNotCancelled();
177 storages.insert(table);
178 mutations.emplace_back(table, mutation_id);
179}
180
181bool MergeTreeTransaction::isReadOnly() const
182{

Callers 1

startMutationMethod · 0.80

Calls 3

checkNotOrdinaryDatabaseFunction · 0.85
insertMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected