From 5f2cf595f0a9003d6469075e10e4f5a8b8d0a138 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Mon, 20 Jun 2011 19:47:23 +0000 Subject: [PATCH] Fix search'n'replace error: Actually warn if MaxClients is used git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1137757 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/event/event.c | 2 +- server/mpm/prefork/prefork.c | 2 +- server/mpm/worker/worker.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/mpm/event/event.c b/server/mpm/event/event.c index 7eff0d566c..63bf639a2e 100644 --- a/server/mpm/event/event.c +++ b/server/mpm/event/event.c @@ -3084,7 +3084,7 @@ static const char *set_max_workers(cmd_parms * cmd, void *dummy, if (err != NULL) { return err; } - if (!strcasecmp(cmd->cmd->name, "MaxRequestWorkers")) { + if (!strcasecmp(cmd->cmd->name, "MaxClients")) { ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL, "MaxClients is deprecated, use MaxRequestWorkers " "instead."); diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index 911bd647be..19dacf5682 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -1478,7 +1478,7 @@ static const char *set_max_clients (cmd_parms *cmd, void *dummy, const char *arg if (err != NULL) { return err; } - if (!strcasecmp(cmd->cmd->name, "MaxRequestWorkers")) { + if (!strcasecmp(cmd->cmd->name, "MaxClients")) { ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL, "MaxClients is deprecated, use MaxRequestWorkers " "instead."); diff --git a/server/mpm/worker/worker.c b/server/mpm/worker/worker.c index 9d0971cf65..e137d15956 100644 --- a/server/mpm/worker/worker.c +++ b/server/mpm/worker/worker.c @@ -2311,7 +2311,7 @@ static const char *set_max_workers (cmd_parms *cmd, void *dummy, if (err != NULL) { return err; } - if (!strcasecmp(cmd->cmd->name, "MaxRequestWorkers")) { + if (!strcasecmp(cmd->cmd->name, "MaxClients")) { ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL, "MaxClients is deprecated, use MaxRequestWorkers " "instead."); -- 2.40.0