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
3e43aed1
Commit
3e43aed1
authored
Jul 04, 2019
by
antirez
Browse files
Client side caching: fix invalidate message len and content.
parent
46edb55d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tracking.c
View file @
3e43aed1
...
@@ -148,9 +148,9 @@ void trackingInvalidateKey(robj *keyobj) {
...
@@ -148,9 +148,9 @@ void trackingInvalidateKey(robj *keyobj) {
/* Only send such info for clients in RESP version 3 or more. */
/* Only send such info for clients in RESP version 3 or more. */
if
(
c
->
resp
>
2
)
{
if
(
c
->
resp
>
2
)
{
addReplyPushLen
(
c
,
3
);
addReplyPushLen
(
c
,
2
);
addReplyBulkCBuffer
(
c
,
"invalidate"
,
10
);
addReplyBulkCBuffer
(
c
,
"invalidate"
,
10
);
addReply
Bulk
(
c
,
keyobj
);
addReply
LongLong
(
c
,
hash
);
}
}
}
}
raxStop
(
&
ri
);
raxStop
(
&
ri
);
...
...
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