Browse Source

ZOOKEEPER-196. doxygen comment for state argument of watcher_fn typedef and implementation differ (...one of the *_STATE constants, otherwise -1)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/zookeeper/trunk@782792 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 16 years ago
parent
commit
389c0b17e7
2 changed files with 6 additions and 5 deletions
  1. 4 0
      CHANGES.txt
  2. 2 5
      src/c/include/zookeeper.h

+ 4 - 0
CHANGES.txt

@@ -190,6 +190,10 @@ IMPROVEMENTS:
 
   ZOOKEEPER-396. race condition in zookeeper client library between
 zookeeper_close and zoo_synchronous api. (mahadev)
+
+  ZOOKEEPER-196. doxygen comment for state argument of watcher_fn typedef and
+implementation differ ("...one of the *_STATE constants, otherwise -1") (breed
+via mahadev)
  
 NEW FEATURES:
 

+ 2 - 5
src/c/include/zookeeper.h

@@ -162,9 +162,7 @@ extern ZOOAPI const int ZOO_SEQUENCE;
 /**
  * @name State Consts
  * These constants represent the states of a zookeeper connection. They are
- * possible parameters of the watcher callback. If a connection moves from
- * the ZOO_CONNECTED_STATE to the ZOO_CONNECTING_STATE, all outstanding 
- * watches will be removed.
+ * possible parameters of the watcher callback.
  */
 // @{
 extern ZOOAPI const int ZOO_EXPIRED_SESSION_STATE;
@@ -266,8 +264,7 @@ typedef struct {
  * 
  * \param zh zookeeper handle
  * \param type event type. This is one of the *_EVENT constants. 
- * \param state connection state. If the type is ZOO_SESSION_EVENT, the state value 
- * will be one of the *_STATE constants, otherwise -1.
+ * \param state connection state. The state value will be one of the *_STATE constants.
  * \param path znode path for which the watcher is triggered. NULL if the event 
  * type is ZOO_SESSION_EVENT
  * \param watcherCtx watcher context.