mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Remove unused code - leftover from script replication mechanisms (#10272)
append for PR #9812
This commit is contained in:
parent
beb94c901e
commit
ceeff6bf86
13
src/server.c
13
src/server.c
@ -514,19 +514,6 @@ dictType migrateCacheDictType = {
|
||||
NULL /* allow to expand */
|
||||
};
|
||||
|
||||
/* Replication cached script dict (server.repl_scriptcache_dict).
|
||||
* Keys are sds SHA1 strings, while values are not used at all in the current
|
||||
* implementation. */
|
||||
dictType replScriptCacheDictType = {
|
||||
dictSdsCaseHash, /* hash function */
|
||||
NULL, /* key dup */
|
||||
NULL, /* val dup */
|
||||
dictSdsKeyCaseCompare, /* key compare */
|
||||
dictSdsDestructor, /* key destructor */
|
||||
NULL, /* val destructor */
|
||||
NULL /* allow to expand */
|
||||
};
|
||||
|
||||
/* Dict for for case-insensitive search using null terminated C strings.
|
||||
* The keys stored in dict are sds though. */
|
||||
dictType stringSetDictType = {
|
||||
|
@ -1755,10 +1755,6 @@ struct redisServer {
|
||||
char master_replid[CONFIG_RUN_ID_SIZE+1]; /* Master PSYNC runid. */
|
||||
long long master_initial_offset; /* Master PSYNC offset. */
|
||||
int repl_slave_lazy_flush; /* Lazy FLUSHALL before loading DB? */
|
||||
/* Replication script cache. */
|
||||
dict *repl_scriptcache_dict; /* SHA1 all slaves are aware of. */
|
||||
list *repl_scriptcache_fifo; /* First in, first out LRU eviction. */
|
||||
unsigned int repl_scriptcache_size; /* Max number of elements. */
|
||||
/* Synchronous replication. */
|
||||
list *clients_waiting_acks; /* Clients waiting in WAIT command. */
|
||||
int get_ack_from_slaves; /* If true we send REPLCONF GETACK. */
|
||||
@ -2302,7 +2298,6 @@ extern dictType zsetDictType;
|
||||
extern dictType dbDictType;
|
||||
extern double R_Zero, R_PosInf, R_NegInf, R_Nan;
|
||||
extern dictType hashDictType;
|
||||
extern dictType replScriptCacheDictType;
|
||||
extern dictType stringSetDictType;
|
||||
extern dictType dbExpiresDictType;
|
||||
extern dictType modulesDictType;
|
||||
|
Loading…
Reference in New Issue
Block a user