Rename files redisassert to serverassert (#138)
Signed-off-by: 0del <bany.y0599@gmail.com>
This commit is contained in:
parent
98e7b41b85
commit
a1516d53de
@ -362,9 +362,9 @@ SERVER_NAME=$(ENGINE_NAME)-server$(PROG_SUFFIX)
|
||||
ENGINE_SENTINEL_NAME=$(ENGINE_NAME)-sentinel$(PROG_SUFFIX)
|
||||
ENGINE_SERVER_OBJ=threads_mngr.o adlist.o quicklist.o ae.o anet.o dict.o kvstore.o server.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o ziplist.o release.o networking.o util.o object.o db.o replication.o rdb.o t_string.o t_list.o t_set.o t_zset.o t_hash.o config.o aof.o pubsub.o multi.o debug.o sort.o intset.o syncio.o cluster.o cluster_legacy.o crc16.o endianconv.o slowlog.o eval.o bio.o rio.o rand.o memtest.o syscheck.o crcspeed.o crc64.o bitops.o sentinel.o notify.o setproctitle.o blocked.o hyperloglog.o latency.o sparkline.o redis-check-rdb.o redis-check-aof.o geo.o lazyfree.o module.o evict.o expire.o geohash.o geohash_helper.o childinfo.o defrag.o siphash.o rax.o t_stream.o listpack.o localtime.o lolwut.o lolwut5.o lolwut6.o acl.o tracking.o socket.o tls.o sha256.o timeout.o setcpuaffinity.o monotonic.o mt19937-64.o resp_parser.o call_reply.o script_lua.o script.o functions.o function_lua.o commands.o strl.o connection.o unix.o logreqres.o
|
||||
ENGINE_CLI_NAME=$(ENGINE_NAME)-cli$(PROG_SUFFIX)
|
||||
ENGINE_CLI_OBJ=anet.o adlist.o dict.o redis-cli.o zmalloc.o release.o ae.o redisassert.o crcspeed.o crc64.o siphash.o crc16.o monotonic.o cli_common.o mt19937-64.o strl.o cli_commands.o
|
||||
ENGINE_CLI_OBJ=anet.o adlist.o dict.o redis-cli.o zmalloc.o release.o ae.o serverassert.o crcspeed.o crc64.o siphash.o crc16.o monotonic.o cli_common.o mt19937-64.o strl.o cli_commands.o
|
||||
ENGINE_BENCHMARK_NAME=$(ENGINE_NAME)-benchmark$(PROG_SUFFIX)
|
||||
ENGINE_BENCHMARK_OBJ=ae.o anet.o redis-benchmark.o adlist.o dict.o zmalloc.o redisassert.o release.o crcspeed.o crc64.o siphash.o crc16.o monotonic.o cli_common.o mt19937-64.o strl.o
|
||||
ENGINE_BENCHMARK_OBJ=ae.o anet.o redis-benchmark.o adlist.o dict.o zmalloc.o serverassert.o release.o crcspeed.o crc64.o siphash.o crc16.o monotonic.o cli_common.o mt19937-64.o strl.o
|
||||
ENGINE_CHECK_RDB_NAME=$(ENGINE_NAME)-check-rdb$(PROG_SUFFIX)
|
||||
ENGINE_CHECK_AOF_NAME=$(ENGINE_NAME)-check-aof$(PROG_SUFFIX)
|
||||
ALL_SOURCES=$(sort $(patsubst %.o,%.c,$(ENGINE_SERVER_OBJ) $(ENGINE_CLI_OBJ) $(ENGINE_BENCHMARK_OBJ)))
|
||||
|
2
src/ae.c
2
src/ae.c
@ -32,7 +32,7 @@
|
||||
|
||||
#include "ae.h"
|
||||
#include "anet.h"
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/time.h>
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
#include "dict.h"
|
||||
#include "zmalloc.h"
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
#include "monotonic.h"
|
||||
|
||||
/* Using dictSetResizeEnabled() we make possible to disable
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include "intset.h"
|
||||
#include "zmalloc.h"
|
||||
#include "endianconv.h"
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
|
||||
/* Note that these encodings are ordered, so:
|
||||
* INTSET_ENC_INT16 < INTSET_ENC_INT32 < INTSET_ENC_INT64. */
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
#include "zmalloc.h"
|
||||
#include "kvstore.h"
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
#include "monotonic.h"
|
||||
|
||||
#define UNUSED(V) ((void) V)
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
#include "listpack.h"
|
||||
#include "listpack_malloc.h"
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
#include "util.h"
|
||||
|
||||
#define LP_HDR_SIZE 6 /* 32 bit total len + 16 bit number of elements. */
|
||||
|
@ -38,7 +38,7 @@
|
||||
#include <stropts.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
|
||||
#if (ULONG_MAX == 4294967295UL)
|
||||
#define MEMTEST_32BIT
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
|
||||
/* The function pointer for clock retrieval. */
|
||||
monotime (*getMonotonicUs)(void) = NULL;
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "listpack.h"
|
||||
#include "util.h" /* for ll2string */
|
||||
#include "lzf.h"
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
|
||||
#ifndef REDIS_STATIC
|
||||
#define REDIS_STATIC static
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include "rax.h"
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
|
||||
#ifndef RAX_MALLOC_INCLUDE
|
||||
#define RAX_MALLOC_INCLUDE "rax_malloc.h"
|
||||
|
@ -35,7 +35,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <limits.h>
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
#include "sds.h"
|
||||
#include "sdsalloc.h"
|
||||
#include "util.h"
|
||||
|
@ -190,7 +190,7 @@
|
||||
#include "ziplist.h"
|
||||
#include "config.h"
|
||||
#include "endianconv.h"
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
|
||||
#define ZIP_END 255 /* Special "end of ziplist" entry. */
|
||||
#define ZIP_BIG_PREVLEN 254 /* ZIP_BIG_PREVLEN - 1 is the max number of bytes of
|
||||
|
@ -628,7 +628,7 @@ size_t zmalloc_get_rss(void) {
|
||||
|
||||
#if defined(USE_JEMALLOC)
|
||||
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
|
||||
#define STRINGIFY_(x) #x
|
||||
#define STRINGIFY(x) STRINGIFY_(x)
|
||||
@ -910,7 +910,7 @@ size_t zmalloc_get_memory_size(void) {
|
||||
|
||||
#ifdef SERVER_TEST
|
||||
#include "testhelp.h"
|
||||
#include "redisassert.h"
|
||||
#include "serverassert.h"
|
||||
|
||||
#define TEST(name) printf("test — %s\n", name);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user