Skip to content

Commit

Permalink
Rename files redisassert to serverassert (valkey-io#138)
Browse files Browse the repository at this point in the history
Signed-off-by: 0del <bany.y0599@gmail.com>
  • Loading branch information
9bany authored Apr 2, 2024
1 parent 98e7b41 commit a1516d5
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
2 changes: 1 addition & 1 deletion src/ae.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "ae.h"
#include "anet.h"
#include "redisassert.h"
#include "serverassert.h"

#include <stdio.h>
#include <sys/time.h>
Expand Down
2 changes: 1 addition & 1 deletion src/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/intset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion src/kvstore.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

#include "zmalloc.h"
#include "kvstore.h"
#include "redisassert.h"
#include "serverassert.h"
#include "monotonic.h"

#define UNUSED(V) ((void) V)
Expand Down
2 changes: 1 addition & 1 deletion src/listpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion src/memtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <stropts.h>
#endif
#include "config.h"
#include "redisassert.h"
#include "serverassert.h"

#if (ULONG_MAX == 4294967295UL)
#define MEMTEST_32BIT
Expand Down
2 changes: 1 addition & 1 deletion src/monotonic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/quicklist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/rax.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/sds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/ziplist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/zmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit a1516d5

Please sign in to comment.