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
c2d4f76c
Commit
c2d4f76c
authored
Aug 08, 2018
by
root
Committed by
caidaojin
Aug 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
little change
parent
303a3714
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
couchbase_channel.cpp
src/brpc/couchbase_channel.cpp
+2
-2
No files found.
src/brpc/couchbase_channel.cpp
View file @
c2d4f76c
...
...
@@ -140,8 +140,8 @@ butil::Status VBucketMapReader::OnReadOnePart(const void* data, size_t length) {
std
::
string
complete
=
_buf
.
substr
(
pos
,
new_pos
);
butil
::
VBUCKET_CONFIG_HANDLE
vb
=
butil
::
vbucket_config_parse_string
(
complete
.
c_str
());
_listener
->
UpdateVBucketMap
(
vb
);
if
(
vb
!=
nullptr
)
{
_listener
->
UpdateVBucketMap
(
vb
);
butil
::
vbucket_config_destroy
(
vb
);
}
pos
=
new_pos
+
kSeparator
.
size
();
...
...
@@ -206,8 +206,8 @@ CouchbaseServerListener::~CouchbaseServerListener() {
void
CouchbaseServerListener
::
InitVBucketMap
(
const
std
::
string
&
str
)
{
butil
::
VBUCKET_CONFIG_HANDLE
vb
=
butil
::
vbucket_config_parse_string
(
str
.
c_str
());
UpdateVBucketMap
(
vb
);
if
(
vb
!=
nullptr
)
{
UpdateVBucketMap
(
vb
);
butil
::
vbucket_config_destroy
(
vb
);
}
}
...
...
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