MCPcopy Create free account
hub / github.com/apache/cloudberry / remove_timeout_index

Function remove_timeout_index

src/backend/utils/misc/timeout.c:135–151  ·  view source on GitHub ↗

* Remove the index'th element from the timeout list. */

Source from the content-addressed store, hash-verified

133 * Remove the index'th element from the timeout list.
134 */
135static void
136remove_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

Callers 4

enable_timeoutFunction · 0.85
handle_sig_alarmFunction · 0.85
disable_timeoutFunction · 0.85
disable_timeoutsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected