Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 45122 invoked from network); 8 Jun 2007 06:14:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jun 2007 06:14:11 -0000 Received: (qmail 80020 invoked by uid 500); 8 Jun 2007 06:14:14 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 79983 invoked by uid 500); 8 Jun 2007 06:14:14 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 79971 invoked by uid 99); 8 Jun 2007 06:14:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 23:14:14 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 23:14:10 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 6865B1A981A; Thu, 7 Jun 2007 23:13:50 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r545432 - /apr/apr-util/trunk/memcache/apr_memcache.c Date: Fri, 08 Jun 2007 06:13:50 -0000 To: commits@apr.apache.org From: pquerna@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070608061350.6865B1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: pquerna Date: Thu Jun 7 23:13:49 2007 New Revision: 545432 URL: http://svn.apache.org/viewvc?view=rev&rev=545432 Log: While extremely unlikely, its possible that a key hash could be zero. Maintain the behavoir of other clients, and set the hash to 1. Modified: apr/apr-util/trunk/memcache/apr_memcache.c Modified: apr/apr-util/trunk/memcache/apr_memcache.c URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/memcache/apr_memcache.c?view=diff&rev=545432&r1=545431&r2=545432 ============================================================================== --- apr/apr-util/trunk/memcache/apr_memcache.c (original) +++ apr/apr-util/trunk/memcache/apr_memcache.c Thu Jun 7 23:13:49 2007 @@ -161,7 +161,7 @@ const apr_uint32_t hash) { apr_memcache_server_t *ms = NULL; - apr_uint32_t h = hash; + apr_uint32_t h = hash ? hash : 1; apr_uint32_t i = 0; apr_time_t curtime = 0;