mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
osd/PG: drop unused args to _prepare_write_info
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
655a3d74b3
commit
f0cd1fe2d9
@ -2782,9 +2782,8 @@ void PG::upgrade(ObjectStore *store)
|
|||||||
|
|
||||||
int PG::_prepare_write_info(map<string,bufferlist> *km,
|
int PG::_prepare_write_info(map<string,bufferlist> *km,
|
||||||
epoch_t epoch,
|
epoch_t epoch,
|
||||||
pg_info_t &info, coll_t coll,
|
pg_info_t &info,
|
||||||
map<epoch_t,pg_interval_t> &past_intervals,
|
map<epoch_t,pg_interval_t> &past_intervals,
|
||||||
ghobject_t &pgmeta_oid,
|
|
||||||
bool dirty_big_info,
|
bool dirty_big_info,
|
||||||
bool dirty_epoch)
|
bool dirty_epoch)
|
||||||
{
|
{
|
||||||
@ -2842,8 +2841,8 @@ void PG::prepare_write_info(map<string,bufferlist> *km)
|
|||||||
unstable_stats.clear();
|
unstable_stats.clear();
|
||||||
|
|
||||||
bool need_update_epoch = last_epoch < get_osdmap()->get_epoch();
|
bool need_update_epoch = last_epoch < get_osdmap()->get_epoch();
|
||||||
int ret = _prepare_write_info(km, get_osdmap()->get_epoch(), info, coll,
|
int ret = _prepare_write_info(km, get_osdmap()->get_epoch(), info,
|
||||||
past_intervals, pgmeta_oid,
|
past_intervals,
|
||||||
dirty_big_info, need_update_epoch);
|
dirty_big_info, need_update_epoch);
|
||||||
assert(ret == 0);
|
assert(ret == 0);
|
||||||
if (need_update_epoch)
|
if (need_update_epoch)
|
||||||
|
@ -2234,9 +2234,8 @@ private:
|
|||||||
public:
|
public:
|
||||||
static int _prepare_write_info(map<string,bufferlist> *km,
|
static int _prepare_write_info(map<string,bufferlist> *km,
|
||||||
epoch_t epoch,
|
epoch_t epoch,
|
||||||
pg_info_t &info, coll_t coll,
|
pg_info_t &info,
|
||||||
map<epoch_t,pg_interval_t> &past_intervals,
|
map<epoch_t,pg_interval_t> &past_intervals,
|
||||||
ghobject_t &pgmeta_oid,
|
|
||||||
bool dirty_big_info,
|
bool dirty_big_info,
|
||||||
bool dirty_epoch);
|
bool dirty_epoch);
|
||||||
void write_if_dirty(ObjectStore::Transaction& t);
|
void write_if_dirty(ObjectStore::Transaction& t);
|
||||||
|
@ -479,9 +479,8 @@ int write_info(ObjectStore::Transaction &t, epoch_t epoch, pg_info_t &info,
|
|||||||
map<string,bufferlist> km;
|
map<string,bufferlist> km;
|
||||||
int ret = PG::_prepare_write_info(
|
int ret = PG::_prepare_write_info(
|
||||||
&km, epoch,
|
&km, epoch,
|
||||||
info, coll,
|
info,
|
||||||
past_intervals,
|
past_intervals,
|
||||||
pgmeta_oid,
|
|
||||||
true, true);
|
true, true);
|
||||||
if (ret) cerr << "Failed to write info" << std::endl;
|
if (ret) cerr << "Failed to write info" << std::endl;
|
||||||
t.omap_setkeys(coll, pgmeta_oid, km);
|
t.omap_setkeys(coll, pgmeta_oid, km);
|
||||||
|
Loading…
Reference in New Issue
Block a user