From e534db03c6877f8ac0559f63840e9a00e9bd43bf Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 4 Oct 2008 05:40:51 +0000 Subject: added live sync code added a config file parser added tracker id changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE added an option to switch off fullscrapes cleaned up many internal hardcoded values, like PROTO_FLAG, --- ot_sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ot_sync.c') diff --git a/ot_sync.c b/ot_sync.c index 5f772fb..4beb60d 100644 --- a/ot_sync.c +++ b/ot_sync.c @@ -23,7 +23,7 @@ #include "ot_stats.h" #include "ot_iovec.h" -#ifdef WANT_TRACKER_SYNC +#ifdef WANT_SYNC_BATCH #define OT_SYNC_CHUNK_SIZE (512*1024) @@ -141,7 +141,7 @@ static void * sync_worker( void * args) { ot_tasktype tasktype = TASK_SYNC_OUT; ot_taskid taskid = mutex_workqueue_poptask( &tasktype ); sync_make( &iovec_entries, &iovector ); - stats_issue_event( EVENT_SYNC_OUT, 1, iovec_length( &iovec_entries, &iovector) ); + stats_issue_event( EVENT_SYNC_OUT, FLAG_TCP, iovec_length( &iovec_entries, &iovector) ); if( mutex_workqueue_pushresult( taskid, iovec_entries, iovector ) ) iovec_free( &iovec_entries, &iovector ); } -- cgit v1.2.3