fix INCR/DECR refcount leak for extstore headers
Bug added in 2014. Same condition reused to bounce incr/decr commands
off of CHUNKED and ITEM_HDR items. Thus, incr/decr'ing a value that is
already in extstore would immediately cause a refcount leak :(
@@ -4234,6 +4234,7 @@ enum delta_result_type do_add_delta(conn *c, const char *key, const size_t nkey,
#else
if (it->nbytes <= 2 || (it->it_flags & (ITEM_CHUNKED)) != 0) {
#endif
+ do_item_remove(it);
return NON_NUMERIC;
}
