主从同步性能优化,主从同步性能测试。
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user