<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1144,6 +1144,11 @@ static void process_bin_get(conn *c) {
         uint16_t keylen = 0;
         uint32_t bodylen = sizeof(rsp-&gt;message.body) + (it-&gt;nbytes - 2);
 
+        STATS_LOCK();
+        stats.get_cmds++;
+        stats.get_hits++;
+        STATS_UNLOCK();
+
         if (c-&gt;cmd == PROTOCOL_BINARY_CMD_GETK ||
                 c-&gt;cmd == PROTOCOL_BINARY_CMD_GETKQ) {
             bodylen += nkey;
@@ -1165,6 +1170,11 @@ static void process_bin_get(conn *c) {
         add_iov(c, ITEM_data(it), it-&gt;nbytes - 2);
         conn_set_state(c, conn_mwrite);
     } else {
+        STATS_LOCK();
+        stats.get_cmds++;
+        stats.get_misses++;
+        STATS_UNLOCK();
+
         if (c-&gt;cmd == PROTOCOL_BINARY_CMD_GETQ ||
                 c-&gt;cmd == PROTOCOL_BINARY_CMD_GETKQ) {
             conn_set_state(c, conn_new_cmd);</diff>
      <filename>memcached.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c4dfd926e442db6d70d198c3694f31b0e1aae76a</id>
    </parent>
  </parents>
  <author>
    <name>Toru Maesaka</name>
    <email>dev@torum.net</email>
  </author>
  <url>http://github.com/dustin/memcached/commit/88269cbf56a08ca701f5a8c417cd0234ea345c63</url>
  <id>88269cbf56a08ca701f5a8c417cd0234ea345c63</id>
  <committed-date>2009-01-03T00:09:10-08:00</committed-date>
  <authored-date>2008-09-22T04:17:47-07:00</authored-date>
  <message>GET related stats increment fix based on HIROSE Masaaki's patch.</message>
  <tree>3d8a096636f78304da9ea60db0e2328c18d1ee22</tree>
  <committer>
    <name>Dustin Sallings</name>
    <email>dustin@spy.net</email>
  </committer>
</commit>
