MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / shutdownDbb

Method shutdownDbb

src/jrd/WorkerAttachment.cpp:258–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257
258void WorkerAttachment::shutdownDbb(Database* dbb)
259{
260 if (Config::getServerMode() != MODE_SUPER)
261 return;
262
263 WorkerAttachment* item = NULL;
264
265 {
266 MutexLockGuard guard(m_mapMutex, FB_FUNCTION);
267
268 if (!m_map->get(dbb->dbb_filename, item))
269 return;
270 }
271
272 item->clear(false);
273 item->waitForWorkers();
274}
275
276StableAttachmentPart* WorkerAttachment::getAttachment(FbStatusVector* status, Database* dbb)
277{

Callers

nothing calls this directly

Calls 3

waitForWorkersMethod · 0.80
getMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected