Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
dcdb
dcdb
Commits
419e47c2
Commit
419e47c2
authored
Mar 02, 2021
by
Michael Ott
Browse files
One more try at fixing the segfaults due to erased iterators
parent
96a3096c
Changes
1
Show whitespace changes
Inline
Side-by-side
tools/dcdbquery/query.cpp
View file @
419e47c2
...
...
@@ -399,6 +399,8 @@ void DCDBQuery::execute() {
auto
q
=
queries
.
begin
();
while
(
q
!=
queries
.
end
())
{
if
(
q
->
first
.
name
!=
prevSensorName
)
{
prevSensorName
=
q
->
first
.
name
;
// Find all queries for the same sensor
std
::
pair
<
queryMap_t
::
iterator
,
queryMap_t
::
iterator
>
range
=
queries
.
equal_range
(
q
->
first
);
...
...
@@ -444,9 +446,6 @@ void DCDBQuery::execute() {
genOutput
(
results
,
range
.
first
,
range
.
second
);
results
.
clear
();
}
prevSensorName
=
q
->
first
.
name
;
}
if
(
q
!=
queries
.
end
())
{
q
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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