* Remove the index'th element from the timeout list. */
| 133 | * Remove the index'th element from the timeout list. |
| 134 | */ |
| 135 | static void |
| 136 | remove_timeout_index(int index) |
| 137 | { |
| 138 | int i; |
| 139 | |
| 140 | if (index < 0 || index >= num_active_timeouts) |
| 141 | elog(FATAL, "timeout index %d out of range 0..%d", index, |
| 142 | num_active_timeouts - 1); |
| 143 | |
| 144 | Assert(active_timeouts[index]->active); |
| 145 | active_timeouts[index]->active = false; |
| 146 | |
| 147 | for (i = index + 1; i < num_active_timeouts; i++) |
| 148 | active_timeouts[i - 1] = active_timeouts[i]; |
| 149 | |
| 150 | num_active_timeouts--; |
| 151 | } |
| 152 | |
| 153 | /* |
| 154 | * Enable the specified timeout reason |
no outgoing calls
no test coverage detected