FIX: do the blocked io even if preparing coll get response fails.
@@ -2102,9 +2102,6 @@ static void process_mop_get_complete(conn *c)
STATS_ELEM_HITS(c, mop_get, c->coll_key, c->coll_nkey);
} else {
STATS_CMD_NOKEY(c, mop_get);
- /* Clear the ewouldblock if it's set */
- if (c->ewouldblock)
- c->ewouldblock = false;
out_string(c, "SERVER_ERROR out of memory writing get response");
}
break;
@@ -4751,9 +4748,6 @@ static void process_bin_lop_get(conn *c)
STATS_ELEM_HITS(c, lop_get, key, nkey);
} else {
STATS_CMD_NOKEY(c, lop_get);
- /* Clear the ewouldblock if it's set */
- if (c->ewouldblock)
- c->ewouldblock = false;
write_bin_packet(c, PROTOCOL_BINARY_RESPONSE_ENOMEM, 0);
}
break;
@@ -5203,9 +5197,6 @@ static void process_bin_sop_get(conn *c)
STATS_ELEM_HITS(c, sop_get, key, nkey);
} else {
STATS_CMD_NOKEY(c, sop_get);
- /* Clear the ewouldblock if it's set */
- if (c->ewouldblock)
- c->ewouldblock = false;
write_bin_packet(c, PROTOCOL_BINARY_RESPONSE_ENOMEM, 0);
}
break;
@@ -5816,9 +5807,6 @@ static void process_bin_bop_get(conn *c)
STATS_ELEM_HITS(c, bop_get, key, nkey);
} else {
STATS_CMD_NOKEY(c, bop_get);
- /* Clear the ewouldblock if it's set */
- if (c->ewouldblock)
- c->ewouldblock = false;
write_bin_packet(c, PROTOCOL_BINARY_RESPONSE_ENOMEM, 0);
}
break;
@@ -9703,9 +9691,6 @@ static void process_lop_get(conn *c, char *key, size_t nkey,
STATS_ELEM_HITS(c, lop_get, key, nkey);
} else {
STATS_CMD_NOKEY(c, lop_get);
- /* Clear the ewouldblock if it's set */
- if (c->ewouldblock)
- c->ewouldblock = false;
out_string(c, "SERVER_ERROR out of memory writing get response");
}
break;
@@ -10101,9 +10086,6 @@ static void process_sop_get(conn *c, char *key, size_t nkey, uint32_t count,
STATS_ELEM_HITS(c, sop_get, key, nkey);
} else {
STATS_CMD_NOKEY(c, sop_get);
- /* Clear the ewouldblock if it's set */
- if (c->ewouldblock)
- c->ewouldblock = false;
out_string(c, "SERVER_ERROR out of memory writing get response");
}
break;
@@ -10484,9 +10466,6 @@ static void process_bop_get(conn *c, char *key, size_t nkey,
STATS_ELEM_HITS(c, bop_get, key, nkey);
} else {
STATS_CMD_NOKEY(c, bop_get);
- /* Clear the ewouldblock if it's set */
- if (c->ewouldblock)
- c->ewouldblock = false;
out_string(c, "SERVER_ERROR out of memory writing get response");
}
break;
