You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2011/06/01 01:58:47 UTC
svn commit: r1129973 - in /subversion/trunk: notes/knobs
subversion/libsvn_subr/cache-membuffer.c
Author: stsp
Date: Tue May 31 23:58:47 2011
New Revision: 1129973
URL: http://svn.apache.org/viewvc?rev=1129973&view=rev
Log:
Rename DEBUG_CACHE_MEMBUFFER to SVN_DEBUG_CACHE_MEMBUFFER to make conflicts
with other libraries defining a symbol with the same name less likely.
* notes/knobs, subversion/libsvn_subr/cache-membuffer.c: Rename all occurrences.
Modified:
subversion/trunk/notes/knobs
subversion/trunk/subversion/libsvn_subr/cache-membuffer.c
Modified: subversion/trunk/notes/knobs
URL: http://svn.apache.org/viewvc/subversion/trunk/notes/knobs?rev=1129973&r1=1129972&r2=1129973&view=diff
==============================================================================
--- subversion/trunk/notes/knobs (original)
+++ subversion/trunk/notes/knobs Tue May 31 23:58:47 2011
@@ -50,7 +50,7 @@ SVN_DBG_QUIET
SVN_DEBUG
SVN_CLIENT_COMMIT_DEBUG
SVN_DEBUG_CACHE_DUMP_STATS
-DEBUG_CACHE_MEMBUFFER
+SVN_DEBUG_CACHE_MEMBUFFER
DEBUG_WORK_QUEUE
PACK_AFTER_EVERY_COMMIT
DEBUG_DOUBLE_FREE
@@ -241,7 +241,7 @@ SVN_I_LIKE_LATENCY_SO_IGNORE_HTTPV2
Default: not defined
Suggested: defined, not defined
-5.5 DEBUG_CACHE_MEMBUFFER
+5.5 SVN_DEBUG_CACHE_MEMBUFFER
Scope: membuffer_cache
Purpose: Detecting logic issues like key collisions etc. within
Modified: subversion/trunk/subversion/libsvn_subr/cache-membuffer.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/cache-membuffer.c?rev=1129973&r1=1129972&r2=1129973&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/cache-membuffer.c (original)
+++ subversion/trunk/subversion/libsvn_subr/cache-membuffer.c Tue May 31 23:58:47 2011
@@ -141,7 +141,7 @@
* a mismatch found in any of them when being compared with the values
* remembered in the setter function, an error will be returned.
*/
-#ifdef DEBUG_CACHE_MEMBUFFER
+#ifdef SVN_DEBUG_CACHE_MEMBUFFER
/* The prefix passed to svn_cache__create_membuffer_cache() effectively
* defines the type of all items stored by that cache instance. We'll take
@@ -281,7 +281,7 @@ static svn_error_t* assert_equal_tags(co
#define DEBUG_CACHE_MEMBUFFER_TAG
#define DEBUG_CACHE_MEMBUFFER_INIT_TAG
-#endif /* DEBUG_CACHE_MEMBUFFER */
+#endif /* SVN_DEBUG_CACHE_MEMBUFFER */
/* A single dictionary entry. Since they are allocated statically, these
* entries can either be in use or in used state. An entry is unused, iff
@@ -324,7 +324,7 @@ typedef struct entry_t
*/
apr_uint32_t previous;
-#ifdef DEBUG_CACHE_MEMBUFFER
+#ifdef SVN_DEBUG_CACHE_MEMBUFFER
/* Remember type, content and key hashes.
*/
entry_tag_t tag;
@@ -1157,7 +1157,7 @@ membuffer_cache_set(svn_membuffer_t *cac
entry->size = size;
entry->offset = cache->current_data;
-#ifdef DEBUG_CACHE_MEMBUFFER
+#ifdef SVN_DEBUG_CACHE_MEMBUFFER
/* Remember original content, type and key (hashes)
*/
@@ -1237,7 +1237,7 @@ membuffer_cache_get(svn_membuffer_t *cac
buffer = ALIGN_POINTER(apr_palloc(result_pool, size + ITEM_ALIGNMENT-1));
memcpy(buffer, (const char*)cache->data + entry->offset, size);
-#ifdef DEBUG_CACHE_MEMBUFFER
+#ifdef SVN_DEBUG_CACHE_MEMBUFFER
/* Check for overlapping entries.
*/
@@ -1306,7 +1306,7 @@ membuffer_cache_get_partial(svn_membuffe
cache->hit_count++;
cache->total_hits++;
-#ifdef DEBUG_CACHE_MEMBUFFER
+#ifdef SVN_DEBUG_CACHE_MEMBUFFER
/* Check for overlapping entries.
*/
@@ -1377,7 +1377,7 @@ membuffer_cache_set_partial(svn_membuffe
cache->hit_count++;
cache->total_writes++;
-#ifdef DEBUG_CACHE_MEMBUFFER
+#ifdef SVN_DEBUG_CACHE_MEMBUFFER
/* Check for overlapping entries.
*/
@@ -1428,7 +1428,7 @@ membuffer_cache_set_partial(svn_membuffe
*/
insert_entry(cache, entry);
-#ifdef DEBUG_CACHE_MEMBUFFER
+#ifdef SVN_DEBUG_CACHE_MEMBUFFER
/* Remember original content, type and key (hashes)
*/
@@ -1503,7 +1503,7 @@ typedef struct svn_membuffer_cache_t
*/
int alloc_counter;
-#ifdef DEBUG_CACHE_MEMBUFFER
+#ifdef SVN_DEBUG_CACHE_MEMBUFFER
/* Invariant tag info for all items stored by this cache instance.
*/
@@ -1872,7 +1872,7 @@ svn_cache__create_membuffer_cache(svn_ca
pool));
memcpy(cache->prefix, checksum->digest, sizeof(cache->prefix));
-#ifdef DEBUG_CACHE_MEMBUFFER
+#ifdef SVN_DEBUG_CACHE_MEMBUFFER
/* Initialize cache debugging support.
*/