| 272 | } |
| 273 | |
| 274 | bool TRA_active_transactions(thread_db* tdbb, Database* dbb) |
| 275 | { |
| 276 | /************************************** |
| 277 | * |
| 278 | * T R A _ a c t i v e _ t r a n s a c t i o n s |
| 279 | * |
| 280 | ************************************** |
| 281 | * |
| 282 | * Functional description |
| 283 | * Determine if any transactions are active. |
| 284 | * Return true is active transactions; otherwise |
| 285 | * return false if no active transactions. |
| 286 | * |
| 287 | **************************************/ |
| 288 | SET_TDBB(tdbb); |
| 289 | |
| 290 | return LCK_query_data(tdbb, LCK_tra, LCK_ANY) ? true : false; |
| 291 | } |
| 292 | |
| 293 | bool TRA_cleanup(thread_db* tdbb) |
| 294 | { |
no test coverage detected