0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

ircd::db: No need to copy gopts in db::cell related.

This commit is contained in:
Jason Volk 2018-12-24 14:29:26 -08:00
parent 171f5ff623
commit b035bb9824
2 changed files with 13 additions and 13 deletions

View file

@ -79,11 +79,11 @@ struct ircd::db::cell
// [GET] load cell only (returns valid) // [GET] load cell only (returns valid)
bool load(const string_view &index = {}, gopts = {}); bool load(const string_view &index = {}, gopts = {});
cell(column, std::unique_ptr<rocksdb::Iterator>, gopts = {}); cell(column, std::unique_ptr<rocksdb::Iterator>, const gopts & = {});
cell(column, const string_view &index, std::unique_ptr<rocksdb::Iterator>, gopts = {}); cell(column, const string_view &index, std::unique_ptr<rocksdb::Iterator>, const gopts & = {});
cell(column, const string_view &index, gopts = {}); cell(column, const string_view &index, const gopts & = {});
cell(database &, const string_view &column, const string_view &index, gopts = {}); cell(database &, const string_view &column, const string_view &index, const gopts & = {});
cell(database &, const string_view &column, gopts = {}); cell(database &, const string_view &column, const gopts & = {});
cell(); cell();
cell(cell &&) noexcept; cell(cell &&) noexcept;
cell(const cell &) = delete; cell(const cell &) = delete;

View file

@ -8732,10 +8732,10 @@ ircd::db::cell::cell()
ircd::db::cell::cell(database &d, ircd::db::cell::cell(database &d,
const string_view &colname, const string_view &colname,
gopts opts) const gopts &opts)
:cell :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, ircd::db::cell::cell(database &d,
const string_view &colname, const string_view &colname,
const string_view &index, const string_view &index,
gopts opts) const gopts &opts)
:cell :cell
{ {
column(d[colname]), index, std::move(opts) column(d[colname]), index, opts
} }
{ {
} }
ircd::db::cell::cell(column column, ircd::db::cell::cell(column column,
const string_view &index, const string_view &index,
gopts opts) const gopts &opts)
:c{std::move(column)} :c{std::move(column)}
,ss{opts.snapshot} ,ss{opts.snapshot}
,it ,it
@ -8771,7 +8771,7 @@ ircd::db::cell::cell(column column,
ircd::db::cell::cell(column column, ircd::db::cell::cell(column column,
const string_view &index, const string_view &index,
std::unique_ptr<rocksdb::Iterator> it, std::unique_ptr<rocksdb::Iterator> it,
gopts opts) const gopts &opts)
:c{std::move(column)} :c{std::move(column)}
,ss{opts.snapshot} ,ss{opts.snapshot}
,it{std::move(it)} ,it{std::move(it)}
@ -8786,9 +8786,9 @@ ircd::db::cell::cell(column column,
ircd::db::cell::cell(column column, ircd::db::cell::cell(column column,
std::unique_ptr<rocksdb::Iterator> it, std::unique_ptr<rocksdb::Iterator> it,
gopts opts) const gopts &opts)
:c{std::move(column)} :c{std::move(column)}
,ss{std::move(opts.snapshot)} ,ss{opts.snapshot}
,it{std::move(it)} ,it{std::move(it)}
{ {
} }