mirror of
https://github.com/transmission/transmission
synced 2025-02-13 09:54:44 +00:00
(trunk libT) #3330 "checking message log causing hang" -- turn off the cache dbg messages since the cache has been running ok for awhile now
This commit is contained in:
parent
666f9258a8
commit
307147b838
1 changed files with 4 additions and 2 deletions
|
@ -177,9 +177,11 @@ flushContiguous( tr_cache * cache, int pos, int n, int rank )
|
||||||
tr_ptrArrayErase( &cache->blocks, pos, pos+n );
|
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) );
|
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) );
|
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 - 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 - 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 );
|
err = tr_ioWrite( tor, piece, offset, walk-buf, buf );
|
||||||
tr_free( buf );
|
tr_free( buf );
|
||||||
|
|
Loading…
Reference in a new issue