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
367ba412
Unverified
Commit
367ba412
authored
Mar 06, 2021
by
Huang Zhw
Committed by
GitHub
Mar 05, 2021
Browse files
Remove some dead code (#8605)
parent
3d9c6a7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
367ba412
...
...
@@ -229,8 +229,6 @@ typedef union typeData {
typedef
struct
typeInterface
{
/* Called on server start, to init the server with default value */
void
(
*
init
)(
typeData
data
);
/* Called on server start, should return 1 on success, 0 on error and should set err */
int
(
*
load
)(
typeData
data
,
sds
*
argc
,
int
argv
,
const
char
**
err
);
/* Called on server startup and CONFIG SET, returns 1 on success, 0 on error
* and can set a verbose err string, update is true when called from CONFIG SET */
int
(
*
set
)(
typeData
data
,
sds
value
,
int
update
,
const
char
**
err
);
...
...
src/server.h
View file @
367ba412
...
...
@@ -735,8 +735,6 @@ typedef struct multiState {
int
cmd_inv_flags
;
/* Same as cmd_flags, OR-ing the ~flags. so that it
is possible to know if all the commands have a
certain flag. */
int
minreplicas
;
/* MINREPLICAS for synchronous replication */
time_t
minreplicas_timeout
;
/* MINREPLICAS timeout as unixtime. */
}
multiState
;
/* This structure holds the blocking operation state for a client.
...
...
@@ -762,7 +760,6 @@ typedef struct blockingState {
size_t
xread_count
;
/* XREAD COUNT option. */
robj
*
xread_group
;
/* XREADGROUP group name. */
robj
*
xread_consumer
;
/* XREADGROUP consumer name. */
mstime_t
xread_retry_time
,
xread_retry_ttl
;
int
xread_group_noack
;
/* BLOCKED_WAIT */
...
...
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