subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1660845 - /subversion/trunk/subversion/libsvn_subr/cache.c
Date Thu, 19 Feb 2015 11:11:22 GMT
Author: stefan2
Date: Thu Feb 19 11:11:21 2015
New Revision: 1660845

URL: http://svn.apache.org/r1660845
Log:
* subversion/libsvn_subr/cache.c
  (svn_cache__has_key): For consistency, this function must support
                        the "pretend empty" debug flag as well.

Modified:
    subversion/trunk/subversion/libsvn_subr/cache.c

Modified: subversion/trunk/subversion/libsvn_subr/cache.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/cache.c?rev=1660845&r1=1660844&r2=1660845&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/cache.c (original)
+++ subversion/trunk/subversion/libsvn_subr/cache.c Thu Feb 19 11:11:21 2015
@@ -102,6 +102,11 @@ svn_cache__has_key(svn_boolean_t *found,
                    apr_pool_t *scratch_pool)
 {
   *found = FALSE;
+#ifdef SVN_DEBUG
+  if (cache->pretend_empty)
+    return SVN_NO_ERROR;
+#endif
+
   return handle_error(cache,
                       (cache->vtable->has_key)(found,
                                                cache->cache_internal,



Mime
View raw message