From 307147b8386e264454ebf8af3e6d5c995a646c9f Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 13 Jul 2010 20:12:54 +0000 Subject: [PATCH] (trunk libT) #3330 "checking message log causing hang" -- turn off the cache dbg messages since the cache has been running ok for awhile now --- libtransmission/cache.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libtransmission/cache.c b/libtransmission/cache.c index 1e1477c51..bbd8ab45b 100644 --- a/libtransmission/cache.c +++ b/libtransmission/cache.c @@ -177,9 +177,11 @@ flushContiguous( tr_cache * cache, int pos, int n, int rank ) tr_ptrArrayErase( &cache->blocks, pos, pos+n ); tr_tordbg( tor, "Writing to disk piece %d, offset %d, len %d", (int)piece, (int)offset, (int)(walk-buf) ); +#if 0 tr_ndbg( MY_NAME, "Removing %d blocks from cache, rank: %d - %d left", n, rank, tr_ptrArraySize(&cache->blocks) ); - //fprintf( stderr, "%s - Writing to disk piece %d, offset %d, len %d\n", tr_torrentName(tor), (int)piece, (int)offset, (int)(walk-buf) ); - //fprintf( stderr, "%s - Removing %d blocks from cache; %d left\n", MY_NAME, n, tr_ptrArraySize(&cache->blocks) ); + fprintf( stderr, "%s - Writing to disk piece %d, offset %d, len %d\n", tr_torrentName(tor), (int)piece, (int)offset, (int)(walk-buf) ); + fprintf( stderr, "%s - Removing %d blocks from cache; %d left\n", MY_NAME, n, tr_ptrArraySize(&cache->blocks) ); +#endif err = tr_ioWrite( tor, piece, offset, walk-buf, buf ); tr_free( buf );