diff options
Diffstat (limited to 'mod_log_sql.c')
-rw-r--r-- | mod_log_sql.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mod_log_sql.c b/mod_log_sql.c index 0ba1bf6..6a80ece 100644 --- a/mod_log_sql.c +++ b/mod_log_sql.c | |||
@@ -548,6 +548,9 @@ static logsql_query_ret safe_sql_insert(request_rec *r, logsql_tabletype table_t | |||
548 | # if defined(WITH_APACHE20) | 548 | # if defined(WITH_APACHE20) |
549 | apr_sleep(apr_time_from_sec(0.25)); /* pause for a quarter second */ | 549 | apr_sleep(apr_time_from_sec(0.25)); /* pause for a quarter second */ |
550 | # elif defined(WITH_APACHE13) | 550 | # elif defined(WITH_APACHE13) |
551 | # if defined(WIN32) | ||
552 | Sleep((DWORD)0.25); | ||
553 | # else | ||
551 | { | 554 | { |
552 | struct timespec delay, remainder; | 555 | struct timespec delay, remainder; |
553 | int nanoret; | 556 | int nanoret; |
@@ -558,6 +561,7 @@ static logsql_query_ret safe_sql_insert(request_rec *r, logsql_tabletype table_t | |||
558 | log_error(APLOG_MARK,APLOG_ERR, errno, r->server,"nanosleep unsuccessful"); | 561 | log_error(APLOG_MARK,APLOG_ERR, errno, r->server,"nanosleep unsuccessful"); |
559 | } | 562 | } |
560 | } | 563 | } |
564 | # endif /* win32 */ | ||
561 | # endif | 565 | # endif |
562 | result = global_config.driver->insert(r,&global_config.db,query); | 566 | result = global_config.driver->insert(r,&global_config.db,query); |
563 | if (result == LOGSQL_QUERY_SUCCESS) { | 567 | if (result == LOGSQL_QUERY_SUCCESS) { |