]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_context: whitespace
authorSage Weil <sage.weil@dreamhost.com>
Fri, 26 Aug 2011 04:29:52 +0000 (21:29 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 27 Aug 2011 16:25:26 +0000 (09:25 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/common/Throttle.h
src/common/ceph_context.cc

index 8fd262573091b3fbad29751e6e141200ebcc1a10..f13fde05dde9c0af15f036969a7f38ccf000bc24 100644 (file)
@@ -13,7 +13,7 @@ public:
   Throttle(int64_t m = 0) : count(0), max(m), waiting(0),
                          lock("Throttle::lock") {
     assert(m >= 0);
-}
+  }
 
 private:
   void _reset_max(int64_t m) {
index 1581d06f8768d5745ef3edcd9b223dc110ff70ce..c15ef1c8d78449ac7f491c8593317950feeb0914 100644 (file)
@@ -85,8 +85,7 @@ private:
   CephContext *_cct;
 };
 
-CephContext::
-CephContext(uint32_t module_type_)
+CephContext::CephContext(uint32_t module_type_)
   : _conf(new md_config_t()),
     _doss(new DoutStreambuf <char, std::basic_string<char>::traits_type>()),
     _dout(_doss),
@@ -104,8 +103,7 @@ CephContext(uint32_t module_type_)
   _heartbeat_map = new HeartbeatMap(this);
 }
 
-CephContext::
-~CephContext()
+CephContext::~CephContext()
 {
   join_service_thread();
 
@@ -128,8 +126,7 @@ CephContext::
 
 }
 
-void CephContext::
-start_service_thread()
+void CephContext::start_service_thread()
 {
   pthread_spin_lock(&_service_thread_lock);
   if (_service_thread) {
@@ -141,8 +138,7 @@ start_service_thread()
   pthread_spin_unlock(&_service_thread_lock);
 }
 
-void CephContext::
-reopen_logs()
+void CephContext::reopen_logs()
 {
   pthread_spin_lock(&_service_thread_lock);
   if (_service_thread)
@@ -150,16 +146,14 @@ reopen_logs()
   pthread_spin_unlock(&_service_thread_lock);
 }
 
-void CephContext::
-dout_lock(DoutLocker *locker)
+void CephContext::dout_lock(DoutLocker *locker)
 {
   pthread_mutex_t *lock = &_doss->lock;
   pthread_mutex_lock(lock);
   locker->lock = lock;
 }
 
-void CephContext::
-dout_trylock(DoutLocker *locker)
+void CephContext::dout_trylock(DoutLocker *locker)
 {
   static const int MAX_DOUT_TRYLOCK_TRIES = 3;
 
@@ -174,8 +168,7 @@ dout_trylock(DoutLocker *locker)
   }
 }
 
-void CephContext::
-join_service_thread()
+void CephContext::join_service_thread()
 {
   pthread_spin_lock(&_service_thread_lock);
   CephContextServiceThread *thread = _service_thread;
@@ -191,14 +184,12 @@ join_service_thread()
   delete thread;
 }
 
-uint32_t CephContext::
-get_module_type() const
+uint32_t CephContext::get_module_type() const
 {
   return _module_type;
 }
 
-PerfCountersCollection *CephContext::
-GetPerfCountersCollection()
+PerfCountersCollection *CephContext::GetPerfCountersCollection()
 {
   return _perf_counters_collection;
 }