From f4b70c8904dea7ec5ae570f7ecac5e64b486e01b Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Wed, 13 Feb 2013 12:57:52 -0800 Subject: [PATCH] PG: minor style change for append_log and read_info They exceeded 80 characters on a line! Signed-off-by: Samuel Just --- src/osd/PG.cc | 12 +++++++----- src/osd/PG.h | 11 +++++++---- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 00530a76d80..6bd803282b7 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -2530,7 +2530,8 @@ void PG::add_log_entry(pg_log_entry_t& e, bufferlist& log_bl) } -void PG::append_log(vector& logv, eversion_t trim_to, ObjectStore::Transaction &t) +void PG::append_log( + vector& 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 &past_intervals, hobject_t &biginfo_oid, - hobject_t &infos_oid, hobject_t &biginfos_oid, interval_set &snap_collections, - __u8 &struct_v) +int PG::read_info( + ObjectStore *store, const coll_t coll, bufferlist &bl, + pg_info_t &info, map &past_intervals, + hobject_t &biginfo_oid, hobject_t &infos_oid, hobject_t &biginfos_oid, + interval_set &snap_collections, __u8 &struct_v) { bufferlist::iterator p = bl.begin(); bufferlist lbl; diff --git a/src/osd/PG.h b/src/osd/PG.h index dfa2338453d..28bcd282cdf 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -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& logv, eversion_t trim_to, ObjectStore::Transaction &t); + void append_log( + vector& 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 &past_intervals, hobject_t &biginfo_oid, - hobject_t &infos_oid, hobject_t &biginfos_oid, interval_set &snap_collections, __u8 &); + static int read_info( + ObjectStore *store, const coll_t coll, + bufferlist &bl, pg_info_t &info, map &past_intervals, + hobject_t &biginfo_oid, hobject_t &infos_oid, hobject_t &biginfos_oid, + interval_set &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);