Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
8da51f50
Commit
8da51f50
authored
May 16, 2013
by
Michal 'vorner' Vaner
Browse files
[2936] Handle rare relocation
parent
52588836
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/zone_data_updater.h
View file @
8da51f50
...
...
@@ -80,7 +80,13 @@ public:
isc_throw
(
isc
::
InvalidOperation
,
"A ZoneDataUpdater already exists"
" on this memory segment. Destroy it first."
);
}
mem_sgmt_
.
setNamedAddress
(
"updater_zone_data"
,
zone_data_
);
if
(
mem_sgmt_
.
setNamedAddress
(
"updater_zone_data"
,
zone_data_
))
{
// It might have relocated during the set
zone_data_
=
static_cast
<
ZoneData
*>
(
mem_sgmt_
.
getNamedAddress
(
"updater_zone_data"
).
second
);
}
assert
(
zone_data_
);
}
/// The destructor.
...
...
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