Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
2612a12d
Commit
2612a12d
authored
Apr 16, 2019
by
Michael Ott
Browse files
Fix SensorMap lookups for cases where loadCache() has not been called before
parent
1c9b609d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/src/sensorconfig.cpp
View file @
2612a12d
...
...
@@ -767,8 +767,9 @@ SCError SensorConfigImpl::getPublicSensorByName(PublicSensor& sensor, const char
sensor
.
frequency
=
frequency
;
/* Add to sensorPropertyCache for later use */
sensorMapByName
.
insert
(
std
::
make_pair
(
publicName
,
std
::
ref
(
sensor
)));
sensorMapByPattern
.
insert
(
std
::
make_pair
(
sensor
.
pattern
,
std
::
ref
(
sensor
)));
sensorList
.
push_back
(
sensor
);
sensorMapByName
.
insert
(
std
::
make_pair
(
publicName
,
std
::
ref
(
sensorList
.
back
())));
sensorMapByPattern
.
insert
(
std
::
make_pair
(
sensor
.
pattern
,
std
::
ref
(
sensorList
.
back
())));
}
else
{
cass_result_free
(
result
);
...
...
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