| 2627 | } |
| 2628 | |
| 2629 | static const char *application_index_admission_error(application_job_subscribe_status_t status) { |
| 2630 | if (status == APPLICATION_JOB_SUBSCRIBE_OPTIONS_CONFLICT) { |
| 2631 | return "another index operation for this project is active with different options"; |
| 2632 | } |
| 2633 | if (status == APPLICATION_JOB_SUBSCRIBE_ALLOCATION_FAILED) { |
| 2634 | return "daemon index coordinator could not allocate an index job"; |
| 2635 | } |
| 2636 | return "daemon index coordinator is stopping or unavailable"; |
| 2637 | } |
| 2638 | |
| 2639 | /* The synchronous contract: wait for the whole index (queueing behind the |
| 2640 | * physical job limit); a cancelled request drops only its own reference. */ |
no outgoing calls
no test coverage detected