Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ceeff6bf
Unverified
Commit
ceeff6bf
authored
Feb 09, 2022
by
chenyang8094
Committed by
GitHub
Feb 09, 2022
Browse files
Remove unused code - leftover from script replication mechanisms (#10272)
append for PR #9812
parent
beb94c90
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
ceeff6bf
...
@@ -514,19 +514,6 @@ dictType migrateCacheDictType = {
...
@@ -514,19 +514,6 @@ dictType migrateCacheDictType = {
NULL
/* allow to expand */
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.
/* Dict for for case-insensitive search using null terminated C strings.
* The keys stored in dict are sds though. */
* The keys stored in dict are sds though. */
dictType
stringSetDictType
=
{
dictType
stringSetDictType
=
{
...
...
src/server.h
View file @
ceeff6bf
...
@@ -1755,10 +1755,6 @@ struct redisServer {
...
@@ -1755,10 +1755,6 @@ struct redisServer {
char master_replid[CONFIG_RUN_ID_SIZE+1]; /* Master PSYNC runid. */
char master_replid[CONFIG_RUN_ID_SIZE+1]; /* Master PSYNC runid. */
long long master_initial_offset; /* Master PSYNC offset. */
long long master_initial_offset; /* Master PSYNC offset. */
int repl_slave_lazy_flush; /* Lazy FLUSHALL before loading DB? */
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. */
/* Synchronous replication. */
list *clients_waiting_acks; /* Clients waiting in WAIT command. */
list *clients_waiting_acks; /* Clients waiting in WAIT command. */
int get_ack_from_slaves; /* If true we send REPLCONF GETACK. */
int get_ack_from_slaves; /* If true we send REPLCONF GETACK. */
...
@@ -2302,7 +2298,6 @@ extern dictType zsetDictType;
...
@@ -2302,7 +2298,6 @@ extern dictType zsetDictType;
extern dictType dbDictType;
extern dictType dbDictType;
extern double R_Zero, R_PosInf, R_NegInf, R_Nan;
extern double R_Zero, R_PosInf, R_NegInf, R_Nan;
extern dictType hashDictType;
extern dictType hashDictType;
extern dictType replScriptCacheDictType;
extern dictType stringSetDictType;
extern dictType stringSetDictType;
extern dictType dbExpiresDictType;
extern dictType dbExpiresDictType;
extern dictType modulesDictType;
extern dictType modulesDictType;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment