主从同步性能优化,主从同步性能测试。

This commit is contained in:
1iaan
2026-02-01 16:49:50 +00:00
parent 003566b69a
commit 6d1a50cf88
31 changed files with 2119 additions and 400 deletions

View File

@@ -20,6 +20,11 @@ typedef enum {
PERSIST_NONE
} PersistenceType;
typedef enum {
REPLICA_DISABLE,
REPLICA_ENABLE
}ReplicaMode;
// typedef enum {
// ALLOC_JEMALLOC,
// ALLOC_MALLOC,
@@ -51,6 +56,7 @@ typedef struct {
AllocatorType allocator;
MemLeakDetectMode leak_mode;
ReplicaMode replica_mode;
} AppConfig;
/**
@@ -64,5 +70,7 @@ const char *server_mode_to_string(ServerMode mode);
const char *persistence_to_string(PersistenceType p);
const char *allocator_to_string(AllocatorType a);
const char *leakage_to_string(MemLeakDetectMode a);
const char *replica_to_string(ReplicaMode a);
#endif /* CONFIG_H */