Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
8b47d98c
Commit
8b47d98c
authored
May 16, 2013
by
Michal 'vorner' Vaner
Browse files
[2836] Call resetHeader at better times
parent
8da51f50
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/zone_writer.cc
View file @
8b47d98c
...
...
@@ -54,14 +54,13 @@ ZoneWriter::load() {
}
zone_data_
=
load_action_
(
segment_
.
getMemorySegment
());
segment_
.
resetHeader
();
if
(
!
zone_data_
)
{
// Bug inside load_action_.
isc_throw
(
isc
::
InvalidOperation
,
"No data returned from load action"
);
}
segment_
.
resetHeader
();
state_
=
ZW_LOADED
;
}
...
...
@@ -86,11 +85,10 @@ ZoneWriter::install() {
zone_data_
));
state_
=
ZW_INSTALLED
;
zone_data_
=
result
.
zone_data
;
}
catch
(
const
isc
::
util
::
MemorySegmentGrown
&
)
{
}
}
}
catch
(
const
isc
::
util
::
MemorySegmentGrown
&
)
{}
segment_
.
resetHeader
();
segment_
.
resetHeader
();
}
}
void
...
...
Write
Preview
Supports
Markdown
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