Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
6a61270f
Commit
6a61270f
authored
Dec 23, 2019
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis_server_protocol: refine comment
parent
10325baa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
redis_reply.h
src/brpc/redis_reply.h
+3
-3
No files found.
src/brpc/redis_reply.h
View file @
6a61270f
...
...
@@ -102,8 +102,8 @@ public:
// return the length of string if this reply is a string, otherwise 0 is
// returned (call stacks are not logged).
size_t
size
()
const
;
// Get the index-th sub reply. If this reply is not an array
, a nil reply
// is returned (call stacks are not logged)
// Get the index-th sub reply. If this reply is not an array
or index is out of
//
range, a nil reply
is returned (call stacks are not logged)
const
RedisReply
&
operator
[](
size_t
index
)
const
;
RedisReply
&
operator
[](
size_t
index
);
...
...
@@ -286,7 +286,7 @@ inline RedisReply& RedisReply::operator[](size_t index) {
}
inline
const
RedisReply
&
RedisReply
::
operator
[](
size_t
index
)
const
{
if
(
is_array
()
&&
_length
>
0
&&
index
<
(
size_t
)
_length
)
{
if
(
is_array
()
&&
index
<
(
size_t
)
_length
)
{
return
_data
.
array
.
replies
[
index
];
}
static
RedisReply
redis_nil
(
NULL
);
...
...
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