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

Function CCH_release_exclusive

src/jrd/cch.cpp:2152–2174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2150
2151
2152void CCH_release_exclusive(thread_db* tdbb)
2153{
2154/**************************************
2155 *
2156 * C C H _ r e l e a s e _ e x c l u s i v e
2157 *
2158 **************************************
2159 *
2160 * Functional description
2161 * Release exclusive access to database.
2162 *
2163 **************************************/
2164 SET_TDBB(tdbb);
2165 Database* dbb = tdbb->getDatabase();
2166 dbb->dbb_flags &= ~DBB_exclusive;
2167
2168 Jrd::Attachment* attachment = tdbb->getAttachment();
2169 if (attachment)
2170 attachment->att_flags &= ~ATT_exclusive;
2171
2172 if (dbb->dbb_ast_flags & DBB_blocking)
2173 LCK_re_post(tdbb, dbb->dbb_lock);
2174}
2175
2176
2177bool CCH_rollover_to_shadow(thread_db* tdbb, Database* dbb, jrd_file* file, const bool inAst)

Callers 5

internalAttachMethod · 0.85
createDatabaseMethod · 0.85
internalDropDatabaseMethod · 0.85
SHUT_databaseFunction · 0.85
SHUT_onlineFunction · 0.85

Calls 4

SET_TDBBFunction · 0.85
LCK_re_postFunction · 0.85
getDatabaseMethod · 0.80
getAttachmentMethod · 0.45

Tested by

no test coverage detected