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
918086e2
Commit
918086e2
authored
Mar 23, 2020
by
antirez
Browse files
Abort transactions after -READONLY error. Fix #7014.
parent
38514e3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
918086e2
...
...
@@ -3509,6 +3509,7 @@ int processCommand(client *c) {
!
(
c
->
flags
&
CLIENT_MASTER
)
&&
c
->
cmd
->
flags
&
CMD_WRITE
)
{
flagTransaction
(
c
);
addReply
(
c
,
shared
.
roslaveerr
);
return
C_OK
;
}
...
...
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