MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / OnDatabaseModified

Method OnDatabaseModified

src/Instance.cxx:121–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void
122Instance::OnDatabaseModified() noexcept
123{
124 assert(database != nullptr);
125
126 /* propagate the change to all subsystems */
127
128 stats_invalidate();
129
130 for (auto &partition : partitions)
131 partition.DatabaseModified(*database);
132
133#ifdef ENABLE_SQLITE
134 if (sticker_database)
135 StartStickerCleanup();
136#endif
137}
138
139void
140Instance::OnDatabaseSongRemoved(const char *uri) noexcept

Callers 2

RunDeferredMethod · 0.45
OnIdleMethod · 0.45

Calls 2

stats_invalidateFunction · 0.85
DatabaseModifiedMethod · 0.45

Tested by

no test coverage detected