mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-18 22:40:50 +00:00
parent
8edd0e3b45
commit
a108651d63
@ -250,6 +250,8 @@ public:
|
|||||||
ClientInfo & getClientInfo() { return client_info; }
|
ClientInfo & getClientInfo() { return client_info; }
|
||||||
const ClientInfo & getClientInfo() const { return client_info; }
|
const ClientInfo & getClientInfo() const { return client_info; }
|
||||||
|
|
||||||
|
void setQuota(const String & name, const String & quota_key, const String & user_name, const Poco::Net::IPAddress & address);
|
||||||
|
|
||||||
void addDependency(const StorageID & from, const StorageID & where);
|
void addDependency(const StorageID & from, const StorageID & where);
|
||||||
void removeDependency(const StorageID & from, const StorageID & where);
|
void removeDependency(const StorageID & from, const StorageID & where);
|
||||||
Dependencies getDependencies(const StorageID & from) const;
|
Dependencies getDependencies(const StorageID & from) const;
|
||||||
|
@ -315,7 +315,7 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Just updates names of database and table without moving any data on disk
|
* Just updates names of database and table without moving any data on disk
|
||||||
* Can be called directly only from DatabaseAtomic.
|
* Can be called only from DatabaseAtomic.
|
||||||
*/
|
*/
|
||||||
virtual void renameInMemory(const String & new_database_name, const String & new_table_name, std::unique_lock<std::mutex> * id_lock = nullptr);
|
virtual void renameInMemory(const String & new_database_name, const String & new_table_name, std::unique_lock<std::mutex> * id_lock = nullptr);
|
||||||
|
|
||||||
|
@ -313,7 +313,7 @@ bool StorageKafka::checkDependencies(const StorageID & table_id)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Check all its dependencies
|
// Check all its dependencies
|
||||||
if (!checkDependencies(db_tab))
|
if (!checkDependencies(StorageID(db_tab.database_name, db_tab.table_name)))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user