From b74880b4ed84693e484efbbb5eef0eb98c37835b Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 13 Jan 2010 09:40:50 -0500 Subject: [PATCH] minor TODO and debugging info changes --- TODO | 1 + redis.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index cfd21b76..1ddf6f5d 100644 --- a/TODO +++ b/TODO @@ -17,6 +17,7 @@ Virtual Memory sub-TODO: * vm-swap-file . The swap file should go where the user wants, and if it's already there and of the right size we can avoid to create it again. * it should be possible to give the vm-max-memory option in megabyte, gigabyte, ..., just using 2GB, 100MB, and so forth. * Make sure to wait all the IO threads are done before to fork() for BGSAVE and BGREWRITEAOF +* Enlarge the stack of threads, to problems when calling LZF lib. VERSION 1.6 TODO (Virtual memory) ================================= diff --git a/redis.c b/redis.c index 009493eb..ad715f78 100644 --- a/redis.c +++ b/redis.c @@ -7594,7 +7594,7 @@ static void *IOThreadEntryPoint(void *arg) { lockThreadedIO(); if (listLength(server.io_newjobs) == 0) { /* No new jobs in queue, exit. */ - redisLog(REDIS_DEBUG,"Thread %lld exiting, nothing to do\n", + redisLog(REDIS_DEBUG,"Thread %lld exiting, nothing to do", (long long) pthread_self()); server.io_active_threads--; unlockThreadedIO(); @@ -7608,7 +7608,7 @@ static void *IOThreadEntryPoint(void *arg) { listAddNodeTail(server.io_processing,j); ln = listLast(server.io_processing); /* We use ln later to remove it */ unlockThreadedIO(); - redisLog(REDIS_DEBUG,"Thread %lld got a new job (type %d): %p about key '%s'\n", + redisLog(REDIS_DEBUG,"Thread %lld got a new job (type %d): %p about key '%s'", (long long) pthread_self(), j->type, (void*)j, (char*)j->key->ptr); /* Process the Job */ @@ -7623,7 +7623,7 @@ static void *IOThreadEntryPoint(void *arg) { } /* Done: insert the job into the processed queue */ - redisLog(REDIS_DEBUG,"Thread %lld completed the job: %p (key %s)\n", + redisLog(REDIS_DEBUG,"Thread %lld completed the job: %p (key %s)", (long long) pthread_self(), (void*)j, (char*)j->key->ptr); lockThreadedIO(); listDelNode(server.io_processing,ln); -- GitLab