summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2019-05-14 20:31:39 -0700
committerdormando <dormando@rydia.net>2019-05-20 13:14:44 -0700
commit31208e8fbeceea163c2fd95dd1031ec684d88fc3 (patch)
tree072ec372d4d8c16716d5df90ccf57490ed919892 /memcached.h
parent4723d424f32acc3ee544d3a7bd91b9f05fe4c608 (diff)
downloadmemcached-31208e8fbeceea163c2fd95dd1031ec684d88fc3.tar.gz
remove inline_ascii_response option
Has defaulted to false since 1.5.0, and with -o modern for a few years before that. Performance is fine, no reported bugs. Always was the intention. Code is simpler without the options.
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/memcached.h b/memcached.h
index 176a9fb..df1e7d5 100644
--- a/memcached.h
+++ b/memcached.h
@@ -145,10 +145,8 @@
APPEND_NUM_FMT_STAT("%d:%s", num, name, fmt, val)
/** Item client flag conversion */
-#define FLAGS_CONV(iar, it, flag) { \
- if ((iar)) { \
- flag = (uint32_t) strtoul(ITEM_suffix((it)), (char **) NULL, 10); \
- } else if ((it)->nsuffix > 0) { \
+#define FLAGS_CONV(it, flag) { \
+ if ((it)->nsuffix > 0) { \
flag = *((uint32_t *)ITEM_suffix((it))); \
} else { \
flag = 0; \
@@ -416,7 +414,6 @@ struct settings {
double hot_max_factor; /* HOT tail age relative to COLD tail */
double warm_max_factor; /* WARM tail age relative to COLD tail */
int crawls_persleep; /* Number of LRU crawls to run before sleeping */
- bool inline_ascii_response; /* pre-format the VALUE line for ASCII responses */
bool temp_lru; /* TTL < temporary_ttl uses TEMP_LRU */
uint32_t temporary_ttl; /* temporary LRU threshold */
int idle_timeout; /* Number of seconds to let connections idle */