]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: update docs for mark_down, mark_down_all semantics
authorSage Weil <sage@inktank.com>
Thu, 18 Jul 2013 17:53:04 +0000 (10:53 -0700)
committerGreg Farnum <greg@inktank.com>
Fri, 19 Jul 2013 20:21:47 +0000 (13:21 -0700)
* RESET events
* note that the reset detection only happens if it is enabled in the
  policy.

Signed-off-by: Sage Weil <sage@inktank.com>
src/msg/Messenger.h

index 28643e1076748d0016bc7747aca6c9398f485d0f..be0dcd1738ef7b568f000221e4433b08200470fa 100644 (file)
@@ -476,22 +476,30 @@ public:
    */
   virtual int send_keepalive(Connection *con) = 0;
   /**
-   * Mark down a Connection to a remote. This will cause us to
-   * discard our outgoing queue for them, and if they try
-   * to reconnect they will discard their queue when we
-   * inform them of the session reset. If there is no
-   * Connection to the given dest, it is a no-op.
-   * It does not generate any notifications to the Dispatcher.
+   * Mark down a Connection to a remote.
+   *
+   * This will cause us to discard our outgoing queue for them, and if
+   * reset detection is enabled in the policy and the endpoint tries
+   * to reconnect they will discard their queue when we inform them of
+   * the session reset.
+   *
+   * If there is no Connection to the given dest, it is a no-op.
+   *
+   * This generates a RESET notification to the Dispatcher.
    *
    * @param a The address to mark down.
    */
   virtual void mark_down(const entity_addr_t& a) = 0;
   /**
-   * Mark down the given Connection. This will cause us to
-   * discard its outgoing queue, and if the endpoint tries
-   * to reconnect they will discard their queue when we
-   * inform them of the session reset.
+   * Mark down the given Connection.
+   *
+   * This will cause us to discard its outgoing queue, and if reset
+   * detection is enabled in the policy and the endpoint tries to
+   * reconnect they will discard their queue when we inform them of
+   * the session reset.
+   *
    * If the Connection* is NULL, this is a no-op.
+   *
    * It does not generate any notifications to the Dispatcher.
    *
    * @param con The Connection to mark down.
@@ -500,6 +508,14 @@ public:
   void mark_down(const ConnectionRef& con) {
     mark_down(con.get());
   }
+  /**
+   * Mark all the existing Connections down. This is equivalent
+   * to iterating over all Connections and calling mark_down()
+   * on each.
+   *
+   * This will generate a RESET event for each closed connections.
+   */
+  virtual void mark_down_all() = 0;
   /**
    * Unlike mark_down, this function will try and deliver
    * all messages before ending the connection, and it will use
@@ -529,12 +545,6 @@ public:
    * @param con The Connection to mark as disposable.
    */
   virtual void mark_disposable(Connection *con) = 0;
-  /**
-   * Mark all the existing Connections down. This is equivalent
-   * to iterating over all Connections and calling mark_down()
-   * on each.
-   */
-  virtual void mark_down_all() = 0;
   /**
    * @} // Connection Management
    */