mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
Pass string_view to no_such_column_family's constructor
With this we don't have to construct a sstring to construct a no_such_column_family. Signed-off-by: Rafael Ávila de Espíndola <espindola@scylladb.com>
This commit is contained in:
@@ -979,7 +979,7 @@ no_such_column_family::no_such_column_family(const utils::UUID& uuid)
|
||||
{
|
||||
}
|
||||
|
||||
no_such_column_family::no_such_column_family(const sstring& ks_name, const sstring& cf_name)
|
||||
no_such_column_family::no_such_column_family(std::string_view ks_name, std::string_view cf_name)
|
||||
: runtime_error{format("Can't find a column family {} in keyspace {}", cf_name, ks_name)}
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1232,7 +1232,7 @@ public:
|
||||
class no_such_column_family : public std::runtime_error {
|
||||
public:
|
||||
no_such_column_family(const utils::UUID& uuid);
|
||||
no_such_column_family(const sstring& ks_name, const sstring& cf_name);
|
||||
no_such_column_family(std::string_view ks_name, std::string_view cf_name);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user