| 5264 | } |
| 5265 | |
| 5266 | int FActiveMaster(client *c) |
| 5267 | { |
| 5268 | if (!(c->flags & CLIENT_MASTER)) |
| 5269 | return false; |
| 5270 | |
| 5271 | listIter li; |
| 5272 | listNode *ln; |
| 5273 | listRewind(g_pserver->masters, &li); |
| 5274 | while ((ln = listNext(&li))) |
| 5275 | { |
| 5276 | redisMaster *mi = (redisMaster*)listNodeValue(ln); |
| 5277 | if (mi->master == c) |
| 5278 | return true; |
| 5279 | } |
| 5280 | return false; |
| 5281 | } |
| 5282 | |
| 5283 | redisMaster *MasterInfoFromClient(client *c) |
| 5284 | { |
no test coverage detected