| 2150 | |
| 2151 | |
| 2152 | void 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 | |
| 2177 | bool CCH_rollover_to_shadow(thread_db* tdbb, Database* dbb, jrd_file* file, const bool inAst) |
no test coverage detected