~mm-yuhu/gearmand/server-funcs

« back to all changes in this revision

Viewing changes to libgearman-server/gearmand.c

  • Committer: Brian Aker
  • Date: 2010-02-11 00:09:22 UTC
  • mfrom: (319.1.2 gearmand-newtrunk)
  • Revision ID: brian@gaz-20100211000922-o1f10hm9zf57leeg
Merging

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
    GEARMAN_ERROR(gearmand, "gearmand_wakeup:write:%d", errno)
281
281
}
282
282
 
 
283
void gearmand_set_round_robin(gearmand_st *gearmand, bool round_robin)
 
284
{
 
285
  if (round_robin)
 
286
  {
 
287
    gearmand->server.options|= GEARMAN_SERVER_RR_ORDER;
 
288
    return;
 
289
  }
 
290
  gearmand->server.options&= GEARMAN_SERVER_RR_ORDER;
 
291
}
 
292
 
 
293
 
283
294
/*
284
295
 * Private definitions
285
296
 */