[ https://issues.apache.org/jira/browse/ZOOKEEPER-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Lescohier updated ZOOKEEPER-1314: ---------------------------------------- Attachment: ZOOKEEPER-1314.patch Notes on the implementation: # int err is declared earlier in the function, because Py_BEGIN_ALLOW_THREADS opens a block, and we need access to the err variable outside that block. # The zookeeper handle is copied to a local variable in the function so that we're not using a global variable while the GIL is released. > improve zkpython synchronous api implementation > ----------------------------------------------- > > Key: ZOOKEEPER-1314 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1314 > Project: ZooKeeper > Issue Type: Improvement > Components: contrib-bindings > Affects Versions: 3.3.3 > Reporter: Daniel Lescohier > Priority: Minor > Attachments: ZOOKEEPER-1314.patch > > Original Estimate: 0.5h > Remaining Estimate: 0.5h > > Improves the following items in zkpython which are related to the Zookeeper > synchronous API: > # For pyzoo_create, no longer limit the returned znode name to 256 bytes; > dynamically allocate memory on the heap. > # For all the synchronous api calls, release the Python Global Interpreter > Lock just before doing the synchronous call. > I will attach the patch shortly. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira