You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by mi...@apache.org on 2012/05/10 03:46:25 UTC
svn commit: r1336465 - in /zookeeper/branches/branch-3.3: CHANGES.txt
src/contrib/zkpython/src/c/zookeeper.c
Author: michim
Date: Thu May 10 01:46:25 2012
New Revision: 1336465
URL: http://svn.apache.org/viewvc?rev=1336465&view=rev
Log:
ZOOKEEPER-1318. In Python binding, get_children (and get and exists, and probably others) with expired session doesn't raise exception properly (henryr via michim)
Modified:
zookeeper/branches/branch-3.3/CHANGES.txt
zookeeper/branches/branch-3.3/src/contrib/zkpython/src/c/zookeeper.c
Modified: zookeeper/branches/branch-3.3/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/branches/branch-3.3/CHANGES.txt?rev=1336465&r1=1336464&r2=1336465&view=diff
==============================================================================
--- zookeeper/branches/branch-3.3/CHANGES.txt (original)
+++ zookeeper/branches/branch-3.3/CHANGES.txt Thu May 10 01:46:25 2012
@@ -17,6 +17,9 @@ BUGFIXES:
ZOOKEEPER-1339. C client doesn't build with --enable-debug (Eric Liang via michim)
+ ZOOKEEPER-1318. In Python binding, get_children (and get and exists, and probably others)
+ with expired session doesn't raise exception properly (henryr via michim)
+
Release 3.3.5 - 2012-03-18
Backward compatible changes:
Modified: zookeeper/branches/branch-3.3/src/contrib/zkpython/src/c/zookeeper.c
URL: http://svn.apache.org/viewvc/zookeeper/branches/branch-3.3/src/contrib/zkpython/src/c/zookeeper.c?rev=1336465&r1=1336464&r2=1336465&view=diff
==============================================================================
--- zookeeper/branches/branch-3.3/src/contrib/zkpython/src/c/zookeeper.c (original)
+++ zookeeper/branches/branch-3.3/src/contrib/zkpython/src/c/zookeeper.c Thu May 10 01:46:25 2012
@@ -66,6 +66,8 @@ PyObject *err_to_exception(int errcode)
return OperationTimeoutException;
case ZBADARGUMENTS:
return BadArgumentsException;
+ case ZINVALIDSTATE:
+ return InvalidStateException;
case ZAPIERROR:
return ApiErrorException;
case ZNONODE:
@@ -90,7 +92,6 @@ PyObject *err_to_exception(int errcode)
return InvalidCallbackException;
case ZSESSIONMOVED:
return SessionMovedException;
-
case ZOK:
default:
return NULL;