]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: update for Dispatcher::ms_handle_refused
authorJohn Spray <john.spray@redhat.com>
Tue, 20 Sep 2016 15:34:37 +0000 (16:34 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 29 Sep 2016 16:27:06 +0000 (17:27 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/mgr/MgrClient.cc
src/mgr/MgrClient.h
src/mgr/MgrStandby.cc
src/mgr/MgrStandby.h

index 8ba6f904665c36632eee9770e2d066466ec11cfd..f0be92a1a9df4c176102c05c1cdabd6634c35a23 100644 (file)
@@ -117,6 +117,11 @@ bool DaemonServer::ms_get_authorizer(int dest_type,
   return *authorizer != NULL;
 }
 
+bool DaemonServer::ms_handle_refused(Connection *con)
+{
+  // do nothing for now
+  return false;
+}
 
 bool DaemonServer::ms_dispatch(Message *m)
 {
index 2540e38b1ec3532b1c9dfcd10a9ee40c4f65f0f4..52afefbcfa4f70219a5cc66da464eb4eece03206 100644 (file)
@@ -66,6 +66,7 @@ public:
   bool ms_dispatch(Message *m);
   bool ms_handle_reset(Connection *con) { return false; }
   void ms_handle_remote_reset(Connection *con) {}
+  bool ms_handle_refused(Connection *con);
   bool ms_get_authorizer(int dest_type, AuthAuthorizer **authorizer,
                          bool force_new);
   bool ms_verify_authorizer(Connection *con,
index bc272d34381190eecb44b83b59e497df32f18b87..b6ece6c37ed3cf8b984524f0f34ae074ca1b366c 100644 (file)
@@ -170,6 +170,11 @@ bool MgrClient::ms_handle_reset(Connection *con)
 #endif
 }
 
+bool MgrClient::ms_handle_refused(Connection *con)
+{
+  // do nothing for now
+  return false;
+}
 
 void MgrClient::send_report()
 {
index 396bb7473b0b74e48655f94db39dab7abe3050fd..80cedf0f412970d70c6e6824eb8f0e3b7fc7256d 100644 (file)
@@ -84,6 +84,7 @@ public:
   bool ms_dispatch(Message *m);
   bool ms_handle_reset(Connection *con);
   void ms_handle_remote_reset(Connection *con) {}
+  bool ms_handle_refused(Connection *con);
 
   bool handle_mgr_map(MMgrMap *m);
   bool handle_mgr_configure(MMgrConfigure *m);
index 7264caab5eafadb033796f67c5997ea3deaa1fd1..f8340e3296ec906ba7b7b6b2ec1e5174d13c9104 100644 (file)
@@ -208,6 +208,12 @@ bool MgrStandby::ms_get_authorizer(int dest_type, AuthAuthorizer **authorizer,
   return *authorizer != NULL;
 }
 
+bool MgrStandby::ms_handle_refused(Connection *con)
+{
+  // do nothing for now
+  return false;
+}
+
 // A reference for use by the signal handler
 MgrStandby *signal_mgr = nullptr;
 
index 4c46a0730ee62add14fb3154adb905b2af4a0701..0762764cdc5b913d9e21926e05ab9c62816ba0f5 100644 (file)
@@ -52,6 +52,8 @@ public:
   void ms_handle_remote_reset(Connection *con) {}
   bool ms_get_authorizer(int dest_type, AuthAuthorizer **authorizer,
                          bool force_new);
+  bool ms_handle_refused(Connection *con);
+
   int init();
   void shutdown();
   void usage() {}