Implement flag retrieval for new keepalive flag.
authorAndre Cruz <andre@cabine.org>
Mon, 8 Mar 2010 14:37:03 +0000 (14:37 +0000)
committerAndre Cruz <andre@cabine.org>
Mon, 8 Mar 2010 14:37:03 +0000 (14:37 +0000)
libmemcached/behavior.c

index aa697cfe8c37004e9b607e3d3120dee1d54562a0..e250241b3307e6a29c7bd82172e45979d3860b4f 100644 (file)
@@ -357,6 +357,8 @@ uint64_t memcached_behavior_get(memcached_st *ptr,
     return ptr->flags.randomize_replica_read;
   case MEMCACHED_BEHAVIOR_CORK:
     return ptr->flags.cork;
+  case MEMCACHED_BEHAVIOR_TCP_KEEPALIVE:
+    return ptr->flags.tcp_keepalive;
   case MEMCACHED_BEHAVIOR_MAX:
   default:
     WATCHPOINT_ASSERT(0); /* Programming mistake if it gets this far */