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
b22eab8f
Commit
b22eab8f
authored
Mar 21, 2012
by
antirez
Browse files
Correctly create shared.oomerr as an sds string.
parent
7dcdd281
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.c
View file @
b22eab8f
...
...
@@ -942,8 +942,8 @@ void createSharedObjects(void) {
"-MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
\r\n
"
));
shared
.
roslaveerr
=
createObject
(
REDIS_STRING
,
sdsnew
(
"-READONLY You can't write against a read only slave.
\r\n
"
));
shared
.
oomerr
=
createObject
(
REDIS_STRING
,
"-OOM command not allowed when used memory > 'maxmemory'.
\r\n
"
);
shared
.
oomerr
=
createObject
(
REDIS_STRING
,
sdsnew
(
"-OOM command not allowed when used memory > 'maxmemory'.
\r\n
"
)
)
;
shared
.
space
=
createObject
(
REDIS_STRING
,
sdsnew
(
" "
));
shared
.
colon
=
createObject
(
REDIS_STRING
,
sdsnew
(
":"
));
shared
.
plus
=
createObject
(
REDIS_STRING
,
sdsnew
(
"+"
));
...
...
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