0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-27 01:02:46 +01:00

ircd::db: Disable stats instance for unused default column.

This commit is contained in:
Jason Volk 2020-06-17 20:56:34 -07:00
parent 3ec1ce6773
commit c8e11b7ffc

View file

@ -1999,7 +1999,9 @@ ircd::db::database::column::column(database &d,
,cfilter{this, this->descriptor->compactor} ,cfilter{this, this->descriptor->compactor}
,stats ,stats
{ {
std::make_shared<struct database::stats>(this->d, this) descriptor.name != "default"s?
std::make_shared<struct database::stats>(this->d, this):
std::shared_ptr<struct database::stats>{},
} }
,allocator ,allocator
{ {