aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseGlue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-10 23:40:05 +0100
committerMax Kellermann <max@duempel.org>2014-01-10 23:42:46 +0100
commit348d0c944e92e8dfb361190b97a168f27a7333b8 (patch)
treeb0b807712792435f02bf752e2e34e7d15184fb14 /src/DatabaseGlue.cxx
parente9ba5fcaf319654ce685cd329414fcf2591c9c95 (diff)
downloadmpd-348d0c944e92e8dfb361190b97a168f27a7333b8.tar.gz
mpd-348d0c944e92e8dfb361190b97a168f27a7333b8.tar.xz
mpd-348d0c944e92e8dfb361190b97a168f27a7333b8.zip
Stats: lazy initialization
Ask the DatabasePlugin for stats when the first client requests them, not at startup.
Diffstat (limited to '')
-rw-r--r--src/DatabaseGlue.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/DatabaseGlue.cxx b/src/DatabaseGlue.cxx
index bc99baa4f..f64b31738 100644
--- a/src/DatabaseGlue.cxx
+++ b/src/DatabaseGlue.cxx
@@ -137,8 +137,6 @@ DatabaseGlobalOpen(Error &error)
db_is_open = true;
- stats_update();
-
return true;
}