Incomming fixes from Charles on the replication branch.
[awesomized/libmemcached] / lib / memcached_flush.c
index fa3dd8d8973eb9de56b925eea2177a973586aa7c..1511adbe43ce0913f09cd1c9ee335e280e4b4db9 100644 (file)
@@ -8,7 +8,7 @@ memcached_return memcached_flush(memcached_st *ptr, time_t expiration)
   char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
   LIBMEMCACHED_MEMCACHED_FLUSH_START();
 
-  if (ptr->number_of_hosts == 0)
+  unlikely (ptr->number_of_hosts == 0)
     return MEMCACHED_NO_SERVERS;
 
   for (x= 0; x < ptr->number_of_hosts; x++)