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
29308077
Commit
29308077
authored
Jun 25, 2013
by
antirez
Browse files
Flush the replication script cache after SCRIPT FLUSH.
parent
9faa6b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
29308077
...
@@ -1020,6 +1020,7 @@ void scriptCommand(redisClient *c) {
...
@@ -1020,6 +1020,7 @@ void scriptCommand(redisClient *c) {
if
(
c
->
argc
==
2
&&
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"flush"
))
{
if
(
c
->
argc
==
2
&&
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"flush"
))
{
scriptingReset
();
scriptingReset
();
addReply
(
c
,
shared
.
ok
);
addReply
(
c
,
shared
.
ok
);
replicationScriptCacheFlush
();
server
.
dirty
++
;
/* Propagating this command is a good idea. */
server
.
dirty
++
;
/* Propagating this command is a good idea. */
}
else
if
(
c
->
argc
>=
2
&&
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"exists"
))
{
}
else
if
(
c
->
argc
>=
2
&&
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"exists"
))
{
int
j
;
int
j
;
...
...
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