소스 검색

ZOOKEEPER-782. Incorrect C API documentation for Watches

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1146820 13f79535-47bb-0310-9956-ffa450edef68
Benjamin Reed 14 년 전
부모
커밋
85c8d8a79c
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 0
      CHANGES.txt
  2. 3 5
      src/c/include/zookeeper.h

+ 2 - 0
CHANGES.txt

@@ -245,6 +245,8 @@ BUGFIXES:
   
   ZOOKEEPER-1046. Small fix: Creating a new sequential node results in a ZNODEEXISTS error. (Vishal K via camille)
 
+  ZOOKEEPER-782. Incorrect C API documentation for Watches. (mahadev via breed)
+
 IMPROVEMENTS:
   ZOOKEEPER-724. Improve junit test integration - log harness information 
   (phunt via mahadev)

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

@@ -42,11 +42,9 @@
  * ZooKeeper clients can leave watches when they queries the data or children
  * of a node. If a watch is left, that client will be notified of the change.
  * The notification is a one time trigger. Subsequent chances to the node will
- * not trigger a notification unless the client issues a querity with the watch
- * flag set. If the client is ever disconnected from the service, even if the
- * disconnection is temporary, the watches of the client will be removed from
- * the service, so a client must treat a disconnect notification as an implicit
- * trigger of all outstanding watches.
+ * not trigger a notification unless the client issues a query with the watch
+ * flag set. If the client is ever disconnected from the service, the watches do 
+ * not need to be reset. The client automatically resets the watches.
  * 
  * When a node is created, it may be flagged as an ephemeral node. Ephemeral
  * nodes are automatically removed when a client session is closed or when