zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject svn commit: r1715557 - in /zookeeper/trunk: CHANGES.txt src/contrib/zkfuse/src/zkadapter.cc
Date Sat, 21 Nov 2015 20:01:15 GMT
Author: rgs
Date: Sat Nov 21 20:01:15 2015
New Revision: 1715557

URL: http://svn.apache.org/viewvc?rev=1715557&view=rev
Log:
ZOOKEEPER-1929: std::length_error on update children
(Charles Strahan via rgs)

Modified:
    zookeeper/trunk/CHANGES.txt
    zookeeper/trunk/src/contrib/zkfuse/src/zkadapter.cc

Modified: zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1715557&r1=1715556&r2=1715557&view=diff
==============================================================================
--- zookeeper/trunk/CHANGES.txt (original)
+++ zookeeper/trunk/CHANGES.txt Sat Nov 21 20:01:15 2015
@@ -211,6 +211,9 @@ BUGFIXES:
   ZOOKEEPER-2229: Several four-letter words are undocumented
   (Chris Nauroth via rgs)
 
+  ZOOKEEPER-1929: std::length_error on update children
+  (Charles Strahan via rgs)
+
 IMPROVEMENTS:
   ZOOKEEPER-1660 Documentation for Dynamic Reconfiguration (Reed Wanderman-Milne via shralex)
 
 

Modified: zookeeper/trunk/src/contrib/zkfuse/src/zkadapter.cc
URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/contrib/zkfuse/src/zkadapter.cc?rev=1715557&r1=1715556&r2=1715557&view=diff
==============================================================================
--- zookeeper/trunk/src/contrib/zkfuse/src/zkadapter.cc (original)
+++ zookeeper/trunk/src/contrib/zkfuse/src/zkadapter.cc Sat Nov 21 20:01:15 2015
@@ -845,7 +845,10 @@ ZooKeeperAdapter::getNodeData(const stri
             string("Unable to get data of node ") + path, rc 
         );
     } else {
-        return string( buffer, buffer + len );
+        if (len == -1) {
+            len = 0;
+        }
+        return string( buffer, len );
     }
 }
 



Mime
View raw message