Changeset 745 for branches/binary/server/memcached.c
- Timestamp:
- 03/03/08 07:51:02 (21 months ago)
- Files:
-
- 1 modified
-
branches/binary/server/memcached.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/binary/server/memcached.c
r735 r745 1613 1613 c->write_and_go = get_init_state(c); 1614 1614 } else { 1615 out_string(c, "SERVER_ERROR out of memory ");1615 out_string(c, "SERVER_ERROR out of memory writing stats"); 1616 1616 } 1617 1617 } … … 1750 1750 1751 1751 if ((wbuf = (char *)malloc(wsize)) == NULL) { 1752 out_string(c, "SERVER_ERROR out of memory ");1752 out_string(c, "SERVER_ERROR out of memory writing stats maps"); 1753 1753 return; 1754 1754 } … … 1917 1917 stats.get_misses += stats_get_misses; 1918 1918 STATS_UNLOCK(); 1919 out_string(c, "SERVER_ERROR out of memory ");1919 out_string(c, "SERVER_ERROR out of memory making CAS suffix"); 1920 1920 return; 1921 1921 } … … 1986 1986 if (key_token->value != NULL || add_iov(c, "END\r\n", 5) != 0 1987 1987 || (IS_UDP(c->protocol) && build_udp_headers(c) != 0)) { 1988 out_string(c, "SERVER_ERROR out of memory ");1988 out_string(c, "SERVER_ERROR out of memory writing get response"); 1989 1989 } 1990 1990 else { … … 2061 2061 out_string(c, "SERVER_ERROR object too large for cache"); 2062 2062 else 2063 out_string(c, "SERVER_ERROR out of memory ");2063 out_string(c, "SERVER_ERROR out of memory storing object"); 2064 2064 /* swallow the data line */ 2065 2065 c->write_and_go = conn_swallow; … … 2164 2164 new_it = do_item_alloc(ITEM_key(it), it->nkey, atoi(ITEM_suffix(it) + 1), it->exptime, res + 2 ); 2165 2165 if (new_it == 0) { 2166 return "SERVER_ERROR out of memory ";2166 return "SERVER_ERROR out of memory in incr/decr"; 2167 2167 } 2168 2168 memcpy(ITEM_data(new_it), buf, res); … … 2255 2255 */ 2256 2256 item_remove(it); /* release reference */ 2257 return "SERVER_ERROR out of memory ";2257 return "SERVER_ERROR out of memory expanding delete queue"; 2258 2258 } 2259 2259 } … … 2300 2300 c->iovused = 0; 2301 2301 if (add_msghdr(c) != 0) { 2302 out_string(c, "SERVER_ERROR out of memory ");2302 out_string(c, "SERVER_ERROR out of memory preparing response"); 2303 2303 return; 2304 2304 } … … 2580 2580 fprintf(stderr, "Couldn't realloc input buffer\n"); 2581 2581 c->rbytes = 0; /* ignore what we read */ 2582 out_string(c, "SERVER_ERROR out of memory ");2582 out_string(c, "SERVER_ERROR out of memory reading request"); 2583 2583 c->write_and_go = conn_closing; 2584 2584 return 1;
