diff --git a/include/ircd/db/cell.h b/include/ircd/db/cell.h index 5bfdfc4be..a910c4dcc 100644 --- a/include/ircd/db/cell.h +++ b/include/ircd/db/cell.h @@ -79,11 +79,11 @@ struct ircd::db::cell // [GET] load cell only (returns valid) bool load(const string_view &index = {}, gopts = {}); - cell(column, std::unique_ptr, gopts = {}); - cell(column, const string_view &index, std::unique_ptr, gopts = {}); - cell(column, const string_view &index, gopts = {}); - cell(database &, const string_view &column, const string_view &index, gopts = {}); - cell(database &, const string_view &column, gopts = {}); + cell(column, std::unique_ptr, const gopts & = {}); + cell(column, const string_view &index, std::unique_ptr, const gopts & = {}); + cell(column, const string_view &index, const gopts & = {}); + cell(database &, const string_view &column, const string_view &index, const gopts & = {}); + cell(database &, const string_view &column, const gopts & = {}); cell(); cell(cell &&) noexcept; cell(const cell &) = delete; diff --git a/ircd/db.cc b/ircd/db.cc index e6fc7da81..0a36a271a 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -8732,10 +8732,10 @@ ircd::db::cell::cell() ircd::db::cell::cell(database &d, const string_view &colname, - gopts opts) + const gopts &opts) :cell { - column(d[colname]), std::unique_ptr{}, std::move(opts) + column(d[colname]), std::unique_ptr{}, opts } { } @@ -8743,17 +8743,17 @@ ircd::db::cell::cell(database &d, ircd::db::cell::cell(database &d, const string_view &colname, const string_view &index, - gopts opts) + const gopts &opts) :cell { - column(d[colname]), index, std::move(opts) + column(d[colname]), index, opts } { } ircd::db::cell::cell(column column, const string_view &index, - gopts opts) + const gopts &opts) :c{std::move(column)} ,ss{opts.snapshot} ,it @@ -8771,7 +8771,7 @@ ircd::db::cell::cell(column column, ircd::db::cell::cell(column column, const string_view &index, std::unique_ptr it, - gopts opts) + const gopts &opts) :c{std::move(column)} ,ss{opts.snapshot} ,it{std::move(it)} @@ -8786,9 +8786,9 @@ ircd::db::cell::cell(column column, ircd::db::cell::cell(column column, std::unique_ptr it, - gopts opts) + const gopts &opts) :c{std::move(column)} -,ss{std::move(opts.snapshot)} +,ss{opts.snapshot} ,it{std::move(it)} { }