]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: make Server::mds private
authorJohn Spray <john.spray@redhat.com>
Mon, 13 Jul 2015 09:23:51 +0000 (10:23 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 28 Jul 2015 08:05:08 +0000 (09:05 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/Server.h

index 29fafd56a7a7416a8844b16f156b86103c197c23..c657d6721b153b327481db5469d4e3b0166a82da 100644 (file)
@@ -44,10 +44,8 @@ enum {
 };
 
 class Server {
-public:
-  // XXX FIXME: can probably friend enough contexts to make this not need to be public
-  MDSRank *mds;
 private:
+  MDSRank *mds;
   MDCache *mdcache;
   MDLog *mdlog;
   PerfCounters *logger;
@@ -59,6 +57,9 @@ private:
   MDSInternalContext *reconnect_done;
   int failed_reconnects;
 
+  friend class MDSContinuation;
+  friend class ServerContext;
+
 public:
   bool terminating_sessions;