mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd::db: No need to copy gopts in db::cell related.
This commit is contained in:
parent
171f5ff623
commit
b035bb9824
2 changed files with 13 additions and 13 deletions
|
@ -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<rocksdb::Iterator>, gopts = {});
|
||||
cell(column, const string_view &index, std::unique_ptr<rocksdb::Iterator>, 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<rocksdb::Iterator>, const gopts & = {});
|
||||
cell(column, const string_view &index, std::unique_ptr<rocksdb::Iterator>, 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;
|
||||
|
|
16
ircd/db.cc
16
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<rocksdb::Iterator>{}, std::move(opts)
|
||||
column(d[colname]), std::unique_ptr<rocksdb::Iterator>{}, 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<rocksdb::Iterator> 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<rocksdb::Iterator> it,
|
||||
gopts opts)
|
||||
const gopts &opts)
|
||||
:c{std::move(column)}
|
||||
,ss{std::move(opts.snapshot)}
|
||||
,ss{opts.snapshot}
|
||||
,it{std::move(it)}
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue