Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72E6B18C61 for ; Wed, 5 Aug 2015 14:38:34 +0000 (UTC) Received: (qmail 43890 invoked by uid 500); 5 Aug 2015 14:38:28 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 43862 invoked by uid 500); 5 Aug 2015 14:38:28 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 43852 invoked by uid 99); 5 Aug 2015 14:38:28 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 14:38:28 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 07559AC04EA for ; Wed, 5 Aug 2015 14:38:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1694236 - /subversion/trunk/subversion/svnserve/svnserve.c Date: Wed, 05 Aug 2015 14:38:27 -0000 To: commits@subversion.apache.org From: stefan2@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150805143828.07559AC04EA@hades.apache.org> Author: stefan2 Date: Wed Aug 5 14:38:27 2015 New Revision: 1694236 URL: http://svn.apache.org/r1694236 Log: Make the --min-threads and --max-threads options in svndamin available whenever the server may be threaded. In particular when --threads is implied and cannot be activated via command line. * subversion/svnserve/svnserve.c (svnserve__options): Enable min/max threads options whenever we support APR threads. Make them reference the --threads option only if that is available. Modified: subversion/trunk/subversion/svnserve/svnserve.c Modified: subversion/trunk/subversion/svnserve/svnserve.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnserve/svnserve.c?rev=1694236&r1=1694235&r2=1694236&view=diff ============================================================================== --- subversion/trunk/subversion/svnserve/svnserve.c (original) +++ subversion/trunk/subversion/svnserve/svnserve.c Wed Aug 5 14:38:27 2015 @@ -317,22 +317,32 @@ static const apr_getopt_option_t svnserv * ### this option never exists when --service exists. */ {"threads", 'T', 0, N_("use threads instead of fork " "[mode: daemon]")}, +#endif +#ifdef APR_HAS_THREADS {"min-threads", SVNSERVE_OPT_MIN_THREADS, 1, N_("Minimum number of server threads, even if idle.\n" " " "Capped to max-threads; minimum value is 0.\n" " " - "Default is 1.\n" + "Default is 1." +#ifdef CONNECTION_HAVE_THREAD_OPTION + "\n" " " - "[used only with --threads]")}, + "[used only with --threads]" +#endif + )}, {"max-threads", SVNSERVE_OPT_MAX_THREADS, 1, N_("Maximum number of server threads, even if there\n" " " "are more connections. Minimum value is 1.\n" " " - "Default is " APR_STRINGIFY(THREADPOOL_MAX_SIZE) ".\n" + "Default is " APR_STRINGIFY(THREADPOOL_MAX_SIZE) +#ifdef CONNECTION_HAVE_THREAD_OPTION + ".\n" " " - "[used only with --threads]")}, + "[used only with --threads]" +#endif + )}, #endif {"foreground", SVNSERVE_OPT_FOREGROUND, 0, N_("run in foreground (useful for debugging)\n"