Browse Source

ZOOKEEPER-1150. fix for this patch to compile on windows. (dheeraj via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1157577 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 14 năm trước cách đây
mục cha
commit
2a45a47b01
2 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 3 0
      CHANGES.txt
  2. 2 1
      src/c/src/zookeeper.c

+ 3 - 0
CHANGES.txt

@@ -282,6 +282,9 @@ BUGFIXES:
   ZOOKEEPER-1146. significant regression in client (c/python) performance.
   (phunt via mahadev)
 
+  ZOOKEEPER-1150. fix for this patch to compile on windows. (dheeraj
+  via mahadev)
+
 IMPROVEMENTS:
   ZOOKEEPER-724. Improve junit test integration - log harness information 
   (phunt via mahadev)

+ 2 - 1
src/c/src/zookeeper.c

@@ -1896,9 +1896,10 @@ static void process_sync_completion(
         if (sc->rc==0) {
             struct CreateResponse res;
             int len;
+            const char * client_path;
             deserialize_CreateResponse(ia, "reply", &res);
             //ZOOKEEPER-1027
-            const char * client_path = sub_string(zh, res.path); 
+            client_path = sub_string(zh, res.path); 
             len = strlen(client_path) + 1;if (len > sc->u.str.str_len) {
                 len = sc->u.str.str_len;
             }