Add ability to have version "just requested" when you initially connect.
[m6w6/libmemcached] / libmemcached / csl / parser.yy
index 21a035264d177c264a9b4577bfd9982e3790af69..e70bba975a12da3c11768d4da92153bbde87eb19 100644 (file)
@@ -133,6 +133,7 @@ inline void __config_error(Context *context, yyscan_t *scanner, const char *erro
 %token _TCP_KEEPALIVE
 %token _TCP_KEEPIDLE
 %token _TCP_NODELAY
+%token FETCH_VERSION
 
 /* Callbacks */
 %token NAMESPACE
@@ -282,6 +283,10 @@ behaviors:
               parser_abort(context, memcached_last_error_message(context->memc));
             }
           }
+        | FETCH_VERSION
+          {
+            memcached_flag(*context->memc, MEMCACHED_FLAG_IS_FETCHING_VERSION, true);
+          }
         | DISTRIBUTION distribution
           {
             // Check to see if DISTRIBUTION has already been set