<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>t/issue_3.t</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2288,7 +2288,7 @@ static void write_and_free(conn *c, char *buf, int bytes) {
     }
 }
 
-static inline void set_noreply_maybe(conn *c, token_t *tokens, size_t ntokens)
+static inline bool set_noreply_maybe(conn *c, token_t *tokens, size_t ntokens)
 {
     int noreply_index = ntokens - 2;
 
@@ -2303,6 +2303,7 @@ static inline void set_noreply_maybe(conn *c, token_t *tokens, size_t ntokens)
         &amp;&amp; strcmp(tokens[noreply_index].value, &quot;noreply&quot;) == 0) {
         c-&gt;noreply = true;
     }
+    return c-&gt;noreply;
 }
 
 void append_stat(const char *name, ADD_STAT add_stats, conn *c,
@@ -2870,7 +2871,12 @@ static void process_delete_command(conn *c, token_t *tokens, const size_t ntoken
 
     assert(c != NULL);
 
-    set_noreply_maybe(c, tokens, ntokens);
+    if (ntokens == 4) {
+        if (!set_noreply_maybe(c, tokens, ntokens)) {
+            out_string(c, &quot;CLIENT_ERROR bad command line format&quot;);
+            return;
+        }
+    }
 
     key = tokens[KEY_TOKEN].value;
     nkey = tokens[KEY_TOKEN].length;</diff>
      <filename>memcached.c</filename>
    </modified>
    <modified>
      <diff>@@ -34,7 +34,7 @@ print $sock &quot;stats detail dump\r\n&quot;;
 is(scalar &lt;$sock&gt;, &quot;PREFIX foo get 2 hit 1 set 1 del 0\r\n&quot;, &quot;details after get without hit&quot;);
 is(scalar &lt;$sock&gt;, &quot;END\r\n&quot;, &quot;end of details&quot;);
 
-print $sock &quot;delete foo:125 0\r\n&quot;;
+print $sock &quot;delete foo:125\r\n&quot;;
 is(scalar &lt;$sock&gt;, &quot;NOT_FOUND\r\n&quot;, &quot;sent delete command&quot;);
 
 print $sock &quot;stats detail dump\r\n&quot;;</diff>
      <filename>t/stats-detail.t</filename>
    </modified>
    <modified>
      <diff>@@ -57,7 +57,7 @@ for my $prot (::IS_ASCII,::IS_BINARY) {
     udp_get_test($prot,45,&quot;404$prot&quot;,&quot;1&quot;,::ENTRY_MISSING);
     udp_incr_decr_test($prot,45,&quot;aval$prot&quot;,&quot;1&quot;,&quot;incr&quot;,1);
     udp_incr_decr_test($prot,45,&quot;aval$prot&quot;,&quot;1&quot;,&quot;decr&quot;,2);
-    udp_delete_test($prot,45,&quot;aval$prot&quot;,&quot;0&quot;);
+    udp_delete_test($prot,45,&quot;aval$prot&quot;);
 }
 
 sub udp_set_test {
@@ -123,12 +123,12 @@ sub udp_get_test {
 }
 
 sub udp_delete_test {
-    my ($protocol, $req_id, $key, $time) = @_;
+    my ($protocol, $req_id, $key) = @_;
     my $req = &quot;&quot;;
     my $key_len = length($key);
 
     if ($protocol == ::IS_ASCII) {
-        $req = &quot;delete $key $time\r\n&quot;;
+        $req = &quot;delete $key\r\n&quot;;
     } elsif ($protocol == ::IS_BINARY) {
         $req = pack(::REQ_PKT_FMT, ::BIN_REQ_MAGIC, ::CMD_DELETE, $key_len, 0, 0, 0, $key_len, 0, 0, 0);
         $req .= $key;</diff>
      <filename>t/udp.t</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>47ab3b002b1591de6b51430dbabc0fe33542ce55</id>
    </parent>
  </parents>
  <author>
    <name>Dustin Sallings</name>
    <email>dustin@spy.net</email>
  </author>
  <url>http://github.com/trondn/memcached/commit/dd599c0e95fed031258ed7363281c643d517ab79</url>
  <id>dd599c0e95fed031258ed7363281c643d517ab79</id>
  <committed-date>2009-10-29T10:07:11-07:00</committed-date>
  <authored-date>2009-10-28T23:03:01-07:00</authored-date>
  <message>Provide better errors for deletion scenarios. bug3</message>
  <tree>c4fdd000730c80e7abb4203858c1d1c684b6b9e5</tree>
  <committer>
    <name>Trond Norbye</name>
    <email>Trond.Norbye@sun.com</email>
  </committer>
</commit>
