Clang tidy fix
This commit is contained in:
parent
4a6f062ef1
commit
95bcb9c040
@ -341,7 +341,7 @@ antlrcpp::Any CypherMainVisitor::visitEdgeImportModeQuery(MemgraphCypher::EdgeIm
|
||||
return edge_import_mode_query;
|
||||
}
|
||||
|
||||
antlrcpp::Any CypherMainVisitor::visitDropGraphQuery(MemgraphCypher::DropGraphQueryContext *ctx) {
|
||||
antlrcpp::Any CypherMainVisitor::visitDropGraphQuery(MemgraphCypher::DropGraphQueryContext * /*ctx*/) {
|
||||
auto *drop_graph_query = storage_->Create<DropGraphQuery>();
|
||||
query_ = drop_graph_query;
|
||||
return drop_graph_query;
|
||||
|
@ -3268,10 +3268,10 @@ Callback DropGraph(memgraph::dbms::DatabaseAccess &db) {
|
||||
}
|
||||
storage->DropGraph();
|
||||
|
||||
auto trigger_store = db->trigger_store();
|
||||
auto *trigger_store = db->trigger_store();
|
||||
trigger_store->DropAll();
|
||||
|
||||
auto streams = db->streams();
|
||||
auto *streams = db->streams();
|
||||
streams->DropAll();
|
||||
|
||||
return std::vector<std::vector<TypedValue>>();
|
||||
|
@ -435,11 +435,11 @@ void TriggerStore::DropTrigger(const std::string &name) {
|
||||
void TriggerStore::DropAll() {
|
||||
std::unique_lock store_guard{store_lock_};
|
||||
std::vector<std::string> trigger_names{};
|
||||
for (auto &[name, trigger_data] : storage_) {
|
||||
for (auto const &[name, trigger_data] : storage_) {
|
||||
trigger_names.push_back(name);
|
||||
}
|
||||
|
||||
for (const auto &trigger_name : trigger_names) {
|
||||
for (auto const &trigger_name : trigger_names) {
|
||||
storage_.Delete(trigger_name);
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ void Constraints::AbortEntries(std::span<Vertex const *const> vertices, uint64_t
|
||||
|
||||
void Constraints::DropGraphClearConstraints() const {
|
||||
static_cast<InMemoryUniqueConstraints *>(unique_constraints_.get())->DropGraphClearConstraints();
|
||||
existence_constraints_.get()->DropGraphClearConstraints();
|
||||
existence_constraints_->DropGraphClearConstraints();
|
||||
}
|
||||
|
||||
} // namespace memgraph::storage
|
||||
|
Loading…
Reference in New Issue
Block a user