MCPcopy Create free account
hub / github.com/MariaDB/server / init_thread_mask

Function init_thread_mask

sql/slave.cc:216–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214*/
215
216void init_thread_mask(int* mask,Master_info* mi,bool inverse)
217{
218 bool set_io = mi->slave_running, set_sql = mi->rli.slave_running;
219 int tmp_mask=0;
220 DBUG_ENTER("init_thread_mask");
221
222 if (set_io)
223 tmp_mask |= SLAVE_IO;
224 if (set_sql)
225 tmp_mask |= SLAVE_SQL;
226 if (inverse)
227 tmp_mask^= (SLAVE_IO | SLAVE_SQL);
228 *mask = tmp_mask;
229 DBUG_VOID_RETURN;
230}
231
232
233/*

Callers 5

init_all_master_infoMethod · 0.85
start_slaveFunction · 0.85
stop_slaveFunction · 0.85
reset_slaveFunction · 0.85
change_masterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected