| 1041 | } |
| 1042 | |
| 1043 | void NBackup::detach_database() |
| 1044 | { |
| 1045 | if (m_silent) |
| 1046 | { |
| 1047 | ISC_STATUS_ARRAY temp; |
| 1048 | if (trans) |
| 1049 | isc_rollback_transaction(temp, &trans); |
| 1050 | |
| 1051 | isc_detach_database(temp, &newdb); |
| 1052 | } |
| 1053 | else |
| 1054 | { |
| 1055 | if (trans) |
| 1056 | { |
| 1057 | if (isc_rollback_transaction(status, &trans)) |
| 1058 | pr_error(status, "rollback transaction"); |
| 1059 | } |
| 1060 | if (isc_detach_database(status, &newdb)) |
| 1061 | pr_error(status, "detach database"); |
| 1062 | } |
| 1063 | } |
| 1064 | |
| 1065 | void NBackup::internal_lock_database() |
| 1066 | { |
nothing calls this directly
no test coverage detected