equal
deleted
inserted
replaced
296 // if the reply contains data, check that they key is the same |
296 // if the reply contains data, check that they key is the same |
297 if (has_data && (key.len != conn->req->key.len || memcmp(key.buf, conn->req->key.buf, key.len) != 0)) |
297 if (has_data && (key.len != conn->req->key.len || memcmp(key.buf, conn->req->key.buf, key.len) != 0)) |
298 ERROR("got reply with wrong key !?!"); |
298 ERROR("got reply with wrong key !?!"); |
299 |
299 |
300 // notify the request (no reply data is ready for reading yet, though) |
300 // notify the request (no reply data is ready for reading yet, though) |
301 memcache_req_reply(conn->req, reply_type); |
301 memcache_req_recv(conn->req, reply_type); |
302 |
302 |
303 // does the reply include data? |
303 // does the reply include data? |
304 if (has_data) { |
304 if (has_data) { |
305 // start reading the data (including whatever might be left over in the bufferevent buffer...) |
305 // start reading the data (including whatever might be left over in the bufferevent buffer...) |
306 memcache_conn_handle_reply_data(conn, in_buf); |
306 memcache_conn_handle_reply_data(conn, in_buf); |