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

Method shutdown

src/jrd/replication/Applier.cpp:273–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void Applier::shutdown(thread_db* tdbb)
274{
275 const auto dbb = tdbb->getDatabase();
276 const auto attachment = tdbb->getAttachment();
277
278 if (!(dbb->dbb_flags & DBB_bugcheck))
279 {
280 cleanupTransactions(tdbb);
281 CMP_release(tdbb, m_request);
282 }
283 m_request = nullptr; // already deleted by pool
284 m_record = nullptr; // already deleted by pool
285 m_bitmap = nullptr; // already deleted by pool
286
287 if (attachment)
288 attachment->att_repl_appliers.findAndRemove(this);
289
290 if (m_interface)
291 {
292 m_interface->resetHandle();
293 m_interface = nullptr;
294 }
295
296 delete this;
297}
298
299void Applier::process(thread_db* tdbb, ULONG length, const UCHAR* data)
300{

Callers

nothing calls this directly

Calls 5

CMP_releaseFunction · 0.85
getDatabaseMethod · 0.80
getAttachmentMethod · 0.45
findAndRemoveMethod · 0.45
resetHandleMethod · 0.45

Tested by

no test coverage detected