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
13ffbdf5
Commit
13ffbdf5
authored
Nov 26, 2019
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis_server_protocol: add missing header
parent
da0168a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
redis_protocol.cpp
src/brpc/policy/redis_protocol.cpp
+6
-6
redis.h
src/brpc/redis.h
+1
-1
No files found.
src/brpc/policy/redis_protocol.cpp
View file @
13ffbdf5
...
...
@@ -126,6 +126,12 @@ public:
ClearQueue
(
ready_to_delete
);
}
SocketId
socket_id
;
RedisService
::
CommandMap
command_map
;
RedisCommandHandler
*
handler_continue
;
std
::
queue
<
ConsumeTaskDone
*>
dones
;
private
:
void
ClearQueue
(
std
::
queue
<
ConsumeTaskDone
*>&
queue
)
{
while
(
!
queue
.
empty
())
{
ConsumeTaskDone
*
head
=
queue
.
front
();
...
...
@@ -134,12 +140,6 @@ public:
}
}
SocketId
socket_id
;
RedisService
::
CommandMap
command_map
;
RedisCommandHandler
*
handler_continue
;
std
::
queue
<
ConsumeTaskDone
*>
dones
;
private
:
bool
_writing
=
false
;
butil
::
Mutex
_mutex
;
};
...
...
src/brpc/redis.h
View file @
13ffbdf5
...
...
@@ -22,7 +22,7 @@
#include <google/protobuf/message.h>
#include <unordered_map>
#include <
vector
>
#include <
memory
>
#include "butil/iobuf.h"
#include "butil/strings/string_piece.h"
#include "butil/arena.h"
...
...
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