From c8e11b7ffcf8637752fa955420db37d74ad019af Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 17 Jun 2020 20:56:34 -0700 Subject: [PATCH] ircd::db: Disable stats instance for unused default column. --- ircd/db.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ircd/db.cc b/ircd/db.cc index cca21a9ba..73d565007 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -1999,7 +1999,9 @@ ircd::db::database::column::column(database &d, ,cfilter{this, this->descriptor->compactor} ,stats { - std::make_shared(this->d, this) + descriptor.name != "default"s? + std::make_shared(this->d, this): + std::shared_ptr{}, } ,allocator {