]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: make a bunch of stuff private.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Tue, 27 Mar 2012 19:57:14 +0000 (12:57 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Tue, 3 Apr 2012 20:22:19 +0000 (13:22 -0700)
Why were all these data members public? They're accessed by Pipes
and the Accepter and stuff, so maybe that's why...but that's all
internal interface stuff.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/msg/SimpleMessenger.h

index 0cfc1240bcab63981e211819b238c652658bc35d..8b9de3b3215beef6cc88b6a25d3966f9a7465eac 100644 (file)
@@ -460,7 +460,6 @@ private:
   void dispatch_throttle_release(uint64_t msize);
 
   // SimpleMessenger stuff
- public:
   Mutex lock;
   Cond  wait_cond;  // for wait()
   bool did_bind;
@@ -483,6 +482,13 @@ private:
   Policy default_policy;
   map<int, Policy> policy_map; // entity_name_t::type -> Policy
 
+  // --- pipes ---
+  set<Pipe*>      pipes;
+  list<Pipe*>     pipe_reap_queue;
+
+  Mutex global_seq_lock;
+  __u32 global_seq;
+public:
   Policy& get_policy(int t) {
     if (policy_map.count(t))
       return policy_map[t];
@@ -490,15 +496,7 @@ private:
       return default_policy;
   }
 
-  // --- pipes ---
-  set<Pipe*>      pipes;
-  list<Pipe*>     pipe_reap_queue;
-  
-  Mutex global_seq_lock;
-  __u32 global_seq;
-      
   Pipe *connect_rank(const entity_addr_t& addr, int type);
-
   virtual void mark_down(const entity_addr_t& addr);
   virtual void mark_down(Connection *con);
   virtual void mark_down_on_empty(Connection *con);