From e620965d4c83c1aacf120218a9598aa537b5d9d1 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 18 Aug 2018 22:10:39 -0700 Subject: [PATCH] ircd::db: Make request pool size a conf item. --- ircd/db.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ircd/db.cc b/ircd/db.cc index 5836e1286..62d4ff4e1 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -89,6 +89,13 @@ ircd::db::request 0, // don't prespawn because this is static }; +ircd::conf::item +request_pool_default +{ + { "name", "ircd.db.request_pool.default" }, + { "default", 32L } +}; + /////////////////////////////////////////////////////////////////////////////// // // init @@ -108,7 +115,7 @@ ircd::db::init::init() { init_compressions(); init_directory(); - request.add(16); + request.add(size_t(request_pool_default)); } ircd::db::init::~init()