From c0778f54fbf5a52a44c61d4f575789fee11f3af6 Mon Sep 17 00:00:00 2001 From: yuqing Date: Wed, 5 Nov 2014 18:30:47 +0800 Subject: [PATCH] remove usleep call in logger.c --- HISTORY | 3 +++ libfastcommon.spec | 2 +- src/logger.c | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 751a501..9518b52 100644 --- a/HISTORY +++ b/HISTORY @@ -1,4 +1,7 @@ +Version 1.11 2014-11-05 + * remove usleep call in logger.c + Version 1.10 2014-10-31 * correct iovent macro define * must set timeout entry's dlink to NULL because NOT in time wheel diff --git a/libfastcommon.spec b/libfastcommon.spec index 5c09c54..8b25f71 100644 --- a/libfastcommon.spec +++ b/libfastcommon.spec @@ -1,5 +1,5 @@ Name: libfastcommon -Version: 1.0.10 +Version: 1.0.11 Release: 1%{?dist} Summary: c common functions library extracted from my open source projects FastDFS License: GPL diff --git a/src/logger.c b/src/logger.c index 32d6482..2d1a977 100644 --- a/src/logger.c +++ b/src/logger.c @@ -106,7 +106,6 @@ int log_init_ex(LogContext *pContext) static int log_print_header(LogContext *pContext) { - usleep(100 * 1000); pContext->current_size = lseek(pContext->log_fd, 0, SEEK_END); if (pContext->current_size < 0) {