Skip to content

Commit

Permalink
Rename file and correct typo.
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Tianjie <TJ_Chen@outlook.com>
  • Loading branch information
CharlesChen888 committed Apr 19, 2024
1 parent 22dcebc commit c3727a7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Makefile
Expand Up @@ -383,7 +383,7 @@ endif
ENGINE_NAME=valkey
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 valkey-check-rdb.o valkey-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_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 heavyloadlog.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 valkey-check-rdb.o valkey-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 valkey-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)
Expand Down
2 changes: 1 addition & 1 deletion src/blocked.c
Expand Up @@ -61,7 +61,7 @@
*/

#include "server.h"
#include "slowlog.h"
#include "heavyloadlog.h"
#include "latency.h"
#include "monotonic.h"

Expand Down
2 changes: 1 addition & 1 deletion src/slowlog.c → src/heavyloadlog.c
Expand Up @@ -47,7 +47,7 @@


#include "server.h"
#include "slowlog.h"
#include "heavyloadlog.h"

/* Create a new slowlog entry.
* Incrementing the ref count of all the objects retained is up to
Expand Down
4 changes: 2 additions & 2 deletions src/slowlog.h → src/heavyloadlog.h
Expand Up @@ -33,12 +33,12 @@
#define HEAVYLOAD_LOG_ENTRY_MAX_ARGC 32
#define HEAVYLOAD_LOG_ENTRY_MAX_STRING 128

/* This structure defines an entry inside the slow log list */
/* This structure defines an entry inside the slow/fat log list */
typedef struct heavyLoadLogEntry {
robj **argv;
int argc;
long long id; /* Unique entry identifier. */
long long cost; /* Time spent by the query, in microseconds, or memmory used by respons packet, in bytes. */
long long cost; /* Time spent by the query, in microseconds, or memory used by response packet, in bytes. */
time_t time; /* Unix time at which the query was executed. */
sds cname; /* Client name. */
sds peerid; /* Client network address. */
Expand Down
2 changes: 1 addition & 1 deletion src/module.c
Expand Up @@ -53,7 +53,7 @@

#include "server.h"
#include "cluster.h"
#include "slowlog.h"
#include "heavyloadlog.h"
#include "rdb.h"
#include "monotonic.h"
#include "script.h"
Expand Down
4 changes: 2 additions & 2 deletions src/server.c
Expand Up @@ -30,7 +30,7 @@
#include "server.h"
#include "monotonic.h"
#include "cluster.h"
#include "slowlog.h"
#include "heavyloadlog.h"
#include "bio.h"
#include "latency.h"
#include "atomicvar.h"
Expand Down Expand Up @@ -3384,7 +3384,7 @@ void slowlogPushCurrentCommand(client *c, struct serverCommand *cmd, ustime_t du

/* Log the last command a client executed into the fatlog. */
void fatlogPushCurrentCommand(client *c, struct serverCommand *cmd, size_t size) {
/* Some commands may contain sensitive data that should not be available in the slowlog. */
/* Some commands may contain sensitive data that should not be available in the fatlog. */
if (cmd->flags & CMD_SKIP_FATLOG)
return;

Expand Down

0 comments on commit c3727a7

Please sign in to comment.