PG: minor style change for append_log and read_info

They exceeded 80 characters on a line!

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2013-02-13 12:57:52 -08:00
parent f3bc8dfee1
commit f4b70c8904
2 changed files with 14 additions and 9 deletions

View File

@ -2530,7 +2530,8 @@ void PG::add_log_entry(pg_log_entry_t& e, bufferlist& log_bl)
}
void PG::append_log(vector<pg_log_entry_t>& logv, eversion_t trim_to, ObjectStore::Transaction &t)
void PG::append_log(
vector<pg_log_entry_t>& logv, eversion_t trim_to, ObjectStore::Transaction &t)
{
dout(10) << "append_log " << log << " " << logv << dendl;
@ -2643,10 +2644,11 @@ std::string PG::get_corrupt_pg_log_name() const
return buf;
}
int PG::read_info(ObjectStore *store, const coll_t coll, bufferlist &bl,
pg_info_t &info, map<epoch_t,pg_interval_t> &past_intervals, hobject_t &biginfo_oid,
hobject_t &infos_oid, hobject_t &biginfos_oid, interval_set<snapid_t> &snap_collections,
__u8 &struct_v)
int PG::read_info(
ObjectStore *store, const coll_t coll, bufferlist &bl,
pg_info_t &info, map<epoch_t,pg_interval_t> &past_intervals,
hobject_t &biginfo_oid, hobject_t &infos_oid, hobject_t &biginfos_oid,
interval_set<snapid_t> &snap_collections, __u8 &struct_v)
{
bufferlist::iterator p = bl.begin();
bufferlist lbl;

View File

@ -1780,7 +1780,8 @@ public:
void write_if_dirty(ObjectStore::Transaction& t);
void add_log_entry(pg_log_entry_t& e, bufferlist& log_bl);
void append_log(vector<pg_log_entry_t>& logv, eversion_t trim_to, ObjectStore::Transaction &t);
void append_log(
vector<pg_log_entry_t>& logv, eversion_t trim_to, ObjectStore::Transaction &t);
static void read_log(ObjectStore *store, coll_t coll, hobject_t log_oid,
const pg_info_t &info, OndiskLog &ondisklog, IndexedLog &log,
@ -1791,9 +1792,11 @@ public:
void trim_peers();
std::string get_corrupt_pg_log_name() const;
static int read_info(ObjectStore *store, const coll_t coll,
bufferlist &bl, pg_info_t &info, map<epoch_t,pg_interval_t> &past_intervals, hobject_t &biginfo_oid,
hobject_t &infos_oid, hobject_t &biginfos_oid, interval_set<snapid_t> &snap_collections, __u8 &);
static int read_info(
ObjectStore *store, const coll_t coll,
bufferlist &bl, pg_info_t &info, map<epoch_t,pg_interval_t> &past_intervals,
hobject_t &biginfo_oid, hobject_t &infos_oid, hobject_t &biginfos_oid,
interval_set<snapid_t> &snap_collections, __u8 &);
void read_state(ObjectStore *store, bufferlist &bl);
static epoch_t peek_map_epoch(ObjectStore *store, coll_t coll,
hobject_t &infos_oid, bufferlist *bl);