update to 1.4.13 OBS-URL: https://build.opensuse.org/request/show/112305 OBS-URL: https://build.opensuse.org/package/show/network:utilities/memcached?expand=0&rev=8
26 lines
819 B
Plaintext
26 lines
819 B
Plaintext
--- memcached.c.orig 2012-04-02 20:24:27.715193171 -0400
|
|
+++ memcached.c 2012-04-02 20:27:08.442183805 -0400
|
|
@@ -2498,15 +2498,19 @@
|
|
inline static void process_stats_detail(conn *c, const char *command) {
|
|
assert(c != NULL);
|
|
|
|
- if (strcmp(command, "on") == 0) {
|
|
+ char on[] = "on";
|
|
+ char off[] = "off";
|
|
+ char dump[] = "dump";
|
|
+
|
|
+ if (strcmp(command, on) == 0) {
|
|
settings.detail_enabled = 1;
|
|
out_string(c, "OK");
|
|
}
|
|
- else if (strcmp(command, "off") == 0) {
|
|
+ else if (strcmp(command, off) == 0) {
|
|
settings.detail_enabled = 0;
|
|
out_string(c, "OK");
|
|
}
|
|
- else if (strcmp(command, "dump") == 0) {
|
|
+ else if (strcmp(command, dump) == 0) {
|
|
int len;
|
|
char *stats = stats_prefix_dump(&len);
|
|
write_and_free(c, stats, len);
|