]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Style corrections
authorDavid Zafman <david.zafman@inktank.com>
Wed, 15 May 2013 00:12:10 +0000 (17:12 -0700)
committerDavid Zafman <david.zafman@inktank.com>
Wed, 5 Jun 2013 17:33:57 +0000 (10:33 -0700)
Signed-off-by: David Zafman <david.zafman@inktank.com>
src/osd/OSD.cc
src/osd/PG.cc

index ef2b58a5de2204751438d7e61bcf2ea6e579afaa..cefff55a778cfa0096bf98826bed94e46cef4b42 100644 (file)
@@ -2970,7 +2970,8 @@ bool remove_dir(
   ObjectStore *store, SnapMapper *mapper,
   OSDriver *osdriver,
   ObjectStore::Sequencer *osr,
-  coll_t coll, DeletingStateRef dstate) {
+  coll_t coll, DeletingStateRef dstate)
+{
   vector<hobject_t> olist;
   int64_t num = 0;
   ObjectStore::Transaction *t = new ObjectStore::Transaction;
index cb13bdc850097bc6a9c30030fb6422be8382a196..8faa75e968b491a7dfc50094f8cfd5fb1d5337f4 100644 (file)
@@ -45,7 +45,8 @@ static ostream& _prefix(std::ostream *_dout, const PG *pg)
   return *_dout << pg->gen_prefix();
 }
 
-void PG::get(const string &tag) {
+void PG::get(const string &tag) 
+{
   ref.inc();
 #ifdef PG_DEBUG_REFS
   Mutex::Locker l(_ref_id_lock);
@@ -55,7 +56,9 @@ void PG::get(const string &tag) {
   _tag_counts[tag]++;
 #endif
 }
-void PG::put(const string &tag) {
+
+void PG::put(const string &tag)
+{
 #ifdef PG_DEBUG_REFS
   {
     Mutex::Locker l(_ref_id_lock);
@@ -71,7 +74,8 @@ void PG::put(const string &tag) {
 }
 
 #ifdef PG_DEBUG_REFS
-uint64_t PG::get_with_id() {
+uint64_t PG::get_with_id()
+{
   ref.inc();
   Mutex::Locker l(_ref_id_lock);
   uint64_t id = ++_ref_id;
@@ -84,7 +88,8 @@ uint64_t PG::get_with_id() {
   return id;
 }
 
-void PG::put_with_id(uint64_t id) {
+void PG::put_with_id(uint64_t id)
+{
   dout(20) << __func__ << ": " << info.pgid << " put id " << id << dendl;
   {
     Mutex::Locker l(_ref_id_lock);
@@ -95,7 +100,8 @@ void PG::put_with_id(uint64_t id) {
     delete this;
 }
 
-void PG::dump_live_ids() {
+void PG::dump_live_ids()
+{
   Mutex::Locker l(_ref_id_lock);
   dout(0) << "\t" << __func__ << ": " << info.pgid << " live ids:" << dendl;
   for (map<uint64_t, string>::iterator i = _live_ids.begin();
@@ -4056,7 +4062,8 @@ void PG::_compare_scrubmaps(const map<int,ScrubMap*> &maps,
   }
 }
 
-void PG::scrub_compare_maps() {
+void PG::scrub_compare_maps() 
+{
   dout(10) << "scrub_compare_maps has maps, analyzing" << dendl;
 
   // construct authoritative scrub map for type specific scrubbing
@@ -4114,7 +4121,8 @@ void PG::scrub_compare_maps() {
   _scrub(authmap);
 }
 
-void PG::scrub_process_inconsistent() {
+void PG::scrub_process_inconsistent()
+{
   dout(10) << "process_inconsistent() checking authoritative" << dendl;
   bool repair = state_test(PG_STATE_REPAIR);
   bool deep_scrub = state_test(PG_STATE_DEEP_SCRUB);
@@ -4174,7 +4182,8 @@ void PG::scrub_process_inconsistent() {
   }
 }
 
-void PG::scrub_finalize() {
+void PG::scrub_finalize()
+{
   lock();
   if (deleting) {
     unlock();
@@ -4206,7 +4215,8 @@ void PG::scrub_finalize() {
 }
 
 // the part that actually finalizes a scrub
-void PG::scrub_finish() {
+void PG::scrub_finish() 
+{
   bool repair = state_test(PG_STATE_REPAIR);
   bool deep_scrub = state_test(PG_STATE_DEEP_SCRUB);
   const char *mode = (repair ? "repair": (deep_scrub ? "deep-scrub" : "scrub"));