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

Method Open

src/db/plugins/simple/SimpleDatabasePlugin.cxx:149–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void
150SimpleDatabase::Open()
151{
152 assert(prefixed_light_song == nullptr);
153
154 root = Directory::NewRoot();
155 mtime = std::chrono::system_clock::time_point::min();
156
157#ifndef NDEBUG
158 borrowed_song_count = 0;
159#endif
160
161 try {
162 Load();
163 } catch (...) {
164 LogError(std::current_exception());
165
166 delete root;
167
168 Check();
169
170 root = Directory::NewRoot();
171 }
172}
173
174void
175SimpleDatabase::Close() noexcept

Callers 1

MountMethod · 0.45

Calls 1

CheckFunction · 0.85

Tested by

no test coverage detected