[memcached] bradfitz, r305: eh, don't check 'em both, just last one.

commits at code.sixapart.com commits at code.sixapart.com
Tue Jul 18 04:31:54 UTC 2006


eh, don't check 'em both, just last one.



U   trunk/api/xs/Cache-Memcached-GetParserXS/GetParserXS.xs


Modified: trunk/api/xs/Cache-Memcached-GetParserXS/GetParserXS.xs
===================================================================
--- trunk/api/xs/Cache-Memcached-GetParserXS/GetParserXS.xs	2006-07-18 04:25:43 UTC (rev 304)
+++ trunk/api/xs/Cache-Memcached-GetParserXS/GetParserXS.xs	2006-07-18 04:31:53 UTC (rev 305)
@@ -111,7 +111,7 @@
       printf("rv=%d, scanned=%d, one=[%d], two=[%d]\n",
              rv, scanned, buf[scanned], buf[scanned+1]);
 
-    if (rv >= 3 && scanned && buf[scanned] == '\r' && buf[scanned + 1] == '\n') {
+    if (rv >= 3 && scanned && buf[scanned+1] == '\n') {
       int p     = scanned + 2;      /* 2 to skip \r\n */
       int state = itemlen + 2;      /* 2 to include reading final \r\n, a different \r\n */
       int copy  = len - p > state ? state : len - p;




More information about the memcached-commits mailing list