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
0ae9fe7c
Commit
0ae9fe7c
authored
7 years ago
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a bug that QueryRemover assumes std::string is COW
parent
95a054f5
master
0.9.8-rc01
0.9.7
0.9.7-rc03
0.9.7-rc02
0.9.7-rc01
0.9.6
0.9.6-rc03
0.9.6-rc02
0.9.6-rc01
0.9.5
v0.9.0
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
uri.cpp
src/brpc/uri.cpp
+2
-2
uri.h
src/brpc/uri.h
+1
-1
No files found.
src/brpc/uri.cpp
View file @
0ae9fe7c
...
...
@@ -423,8 +423,8 @@ void QuerySplitter::split() {
}
QueryRemover
::
QueryRemover
(
const
std
::
string
&
str
)
:
_q
s
(
str
.
data
(),
str
.
data
()
+
str
.
size
()
)
,
_q
uery
(
str
)
:
_q
uery
(
str
)
,
_q
s
(
_query
.
data
(),
_query
.
data
()
+
_query
.
size
())
,
_iterated_len
(
0
)
,
_removed_current_key_value
(
false
)
,
_ever_removed
(
false
)
{
...
...
This diff is collapsed.
Click to expand it.
src/brpc/uri.h
View file @
0ae9fe7c
...
...
@@ -285,8 +285,8 @@ public:
std
::
string
modified_query
();
private
:
QuerySplitter
_qs
;
const
std
::
string
_query
;
QuerySplitter
_qs
;
std
::
string
_modified_query
;
size_t
_iterated_len
;
bool
_removed_current_key_value
;
...
...
This diff is collapsed.
Click to expand it.
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