Faaaaaaaaaster

This commit is contained in:
Robert Schulze 2024-05-21 17:31:13 +00:00
parent 3c4fb4f3b6
commit dc749325df
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ String queryStringFromAST(ASTPtr ast)
QueryCache::Key::Key(
ASTPtr ast_,
String current_database,
const String & current_database,
Block header_,
std::optional<UUID> user_id_, const std::vector<UUID> & current_user_roles_,
bool is_shared_,
@ -220,7 +220,7 @@ QueryCache::Key::Key(
{
}
QueryCache::Key::Key(ASTPtr ast_, String current_database, std::optional<UUID> user_id_, const std::vector<UUID> & current_user_roles_)
QueryCache::Key::Key(ASTPtr ast_, const String & current_database, std::optional<UUID> user_id_, const std::vector<UUID> & current_user_roles_)
: QueryCache::Key(ast_, current_database, {}, user_id_, current_user_roles_, false, std::chrono::system_clock::from_time_t(1), false) /// dummy values for everything != AST, current database, user name/roles
{
}

View File

@ -88,7 +88,7 @@ public:
/// Ctor to construct a Key for writing into query cache.
Key(ASTPtr ast_,
String current_database,
const String & current_database,
Block header_,
std::optional<UUID> user_id_, const std::vector<UUID> & current_user_roles_,
bool is_shared_,
@ -96,7 +96,7 @@ public:
bool is_compressed);
/// Ctor to construct a Key for reading from query cache (this operation only needs the AST + user name).
Key(ASTPtr ast_, String current_database, std::optional<UUID> user_id_, const std::vector<UUID> & current_user_roles_);
Key(ASTPtr ast_, const String & current_database, std::optional<UUID> user_id_, const std::vector<UUID> & current_user_roles_);
bool operator==(const Key & other) const;
};