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
fa726e2a
"vscode:/vscode.git/clone" did not exist on "a68c19df6c884af6dfbc198bde75878ef741faf9"
Commit
fa726e2a
authored
Nov 30, 2018
by
zhaozhao.zz
Committed by
antirez
Dec 11, 2018
Browse files
remove useless tryObjectEncoding in debug assert
parent
40244b10
Changes
1
Show whitespace changes
Inline
Side-by-side
src/debug.c
View file @
fa726e2a
...
@@ -348,7 +348,6 @@ NULL
...
@@ -348,7 +348,6 @@ NULL
zfree
(
ptr
);
zfree
(
ptr
);
addReply
(
c
,
shared
.
ok
);
addReply
(
c
,
shared
.
ok
);
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"assert"
))
{
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"assert"
))
{
if
(
c
->
argc
>=
3
)
c
->
argv
[
2
]
=
tryObjectEncoding
(
c
->
argv
[
2
]);
serverAssertWithInfo
(
c
,
c
->
argv
[
0
],
1
==
2
);
serverAssertWithInfo
(
c
,
c
->
argv
[
0
],
1
==
2
);
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"log"
)
&&
c
->
argc
==
3
)
{
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"log"
)
&&
c
->
argc
==
3
)
{
serverLog
(
LL_WARNING
,
"DEBUG LOG: %s"
,
(
char
*
)
c
->
argv
[
2
]
->
ptr
);
serverLog
(
LL_WARNING
,
"DEBUG LOG: %s"
,
(
char
*
)
c
->
argv
[
2
]
->
ptr
);
...
...
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