summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKanak Kshetri <kanakkshetri@fastmail.fm>2019-12-13 03:37:45 -0600
committerdormando <dormando@rydia.net>2020-01-13 17:45:49 -0800
commit60a63057ad39d5ac1d9c1965eaac45256ce19619 (patch)
treee9309d8b116c6ccfd2781e6a5ee85a6ad7d58990
parente0add319e1510d2d2e868953e2bd0fff688328f2 (diff)
downloadmemcached-60a63057ad39d5ac1d9c1965eaac45256ce19619.tar.gz
stats: Rename stats.c to stats_prefix.c
-rw-r--r--Makefile.am4
-rw-r--r--memcached.h2
-rw-r--r--stats_prefix.c (renamed from stats.c)0
-rw-r--r--stats_prefix.h (renamed from stats.h)4
-rw-r--r--testapp.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 43aecda..1f848cc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,7 @@ noinst_PROGRAMS = memcached-debug sizes testapp timedrun
BUILT_SOURCES=
-testapp_SOURCES = testapp.c util.c util.h stats.c stats.h jenkins_hash.c murmur3_hash.c hash.c hash.h
+testapp_SOURCES = testapp.c util.c util.h stats_prefix.c stats_prefix.h jenkins_hash.c murmur3_hash.c hash.c hash.h
timedrun_SOURCES = timedrun.c
@@ -16,7 +16,7 @@ memcached_SOURCES = memcached.c memcached.h \
items.c items.h \
assoc.c assoc.h \
thread.c daemon.c \
- stats.c stats.h \
+ stats_prefix.c stats_prefix.h \
util.c util.h \
trace.h cache.h sasl_defs.h \
bipbuffer.c bipbuffer.h \
diff --git a/memcached.h b/memcached.h
index 75be184..0adae0b 100644
--- a/memcached.h
+++ b/memcached.h
@@ -768,7 +768,7 @@ extern int daemonize(int nochdir, int noclose);
#define mutex_lock(x) pthread_mutex_lock(x)
#define mutex_unlock(x) pthread_mutex_unlock(x)
-#include "stats.h"
+#include "stats_prefix.h"
#include "slabs.h"
#include "assoc.h"
#include "items.h"
diff --git a/stats.c b/stats_prefix.c
index 62f0d04..62f0d04 100644
--- a/stats.c
+++ b/stats_prefix.c
diff --git a/stats.h b/stats_prefix.h
index d104ab4..ae4d600 100644
--- a/stats.h
+++ b/stats_prefix.h
@@ -1,5 +1,5 @@
-#ifndef STATS_H
-#define STATS_H
+#ifndef STATS_PREFIX_H
+#define STATS_PREFIX_H
/* The stats prefix subsystem stores detailed statistics for each key prefix.
* Simple statistics like total number of GETS are stored by the Stats
diff --git a/testapp.c b/testapp.c
index 094fc30..b670708 100644
--- a/testapp.c
+++ b/testapp.c
@@ -21,7 +21,7 @@
#include "config.h"
#include "cache.h"
#include "hash.h"
-#include "stats.h"
+#include "stats_prefix.h"
#include "util.h"
#include "protocol_binary.h"
#ifdef TLS