| 781 | |
| 782 | |
| 783 | int VAL_service(Firebird::UtilSvc* svc) |
| 784 | { |
| 785 | svc->getStatusAccessor().init(); |
| 786 | |
| 787 | int exit_code = FB_SUCCESS; |
| 788 | |
| 789 | try |
| 790 | { |
| 791 | exit_code = validate(svc); |
| 792 | } |
| 793 | catch (const Exception& ex) |
| 794 | { |
| 795 | FbLocalStatus status; |
| 796 | ex.stuffException(&status); |
| 797 | svc->getStatusAccessor().setServiceStatus(status->getErrors()); |
| 798 | exit_code = FB_FAILURE; |
| 799 | } |
| 800 | |
| 801 | svc->started(); |
| 802 | |
| 803 | return exit_code; |
| 804 | } |
| 805 | |
| 806 | |
| 807 | namespace Jrd |
nothing calls this directly
no test coverage detected