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
Petr Menšík
BIND
Commits
73732bf1
Commit
73732bf1
authored
Nov 22, 2000
by
Andreas Gustafsson
Browse files
don't blow away the journal file after a journal replay,
only after a database dump [RT #482]
parent
7318850b
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/zone.c
View file @
73732bf1
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
*/
/* $Id: zone.c,v 1.25
5
2000/11/
18 02
:5
4
:1
8
gson Exp $ */
/* $Id: zone.c,v 1.25
6
2000/11/
22 18
:5
8
:1
2
gson Exp $ */
#include <config.h>
#include <config.h>
...
@@ -4393,13 +4393,22 @@ zone_replacedb(dns_zone_t *zone, dns_db_t *db, isc_boolean_t dump) {
...
@@ -4393,13 +4393,22 @@ zone_replacedb(dns_zone_t *zone, dns_db_t *db, isc_boolean_t dump) {
*/
*/
(
void
)
isc_time_now
(
&
zone
->
loadtime
);
(
void
)
isc_time_now
(
&
zone
->
loadtime
);
}
}
if
(
zone
->
journal
!=
NULL
)
{
if
(
dump
&&
zone
->
journal
!=
NULL
)
{
/*
* The in-memory database just changed, and because 'dump'
* is set, it didn't change by being loaded from disk.
* Also, we have not journalled diffs for this change.
* Therefore, the on-disk journal is missing the deltas
* for this change and must be considered invalid.
*/
isc_log_write
(
dns_lctx
,
DNS_LOGCATEGORY_GENERAL
,
isc_log_write
(
dns_lctx
,
DNS_LOGCATEGORY_GENERAL
,
DNS_LOGMODULE_ZONE
,
ISC_LOG_DEBUG
(
3
),
DNS_LOGMODULE_ZONE
,
ISC_LOG_DEBUG
(
3
),
"removing journal file"
);
"removing journal file"
);
(
void
)
remove
(
zone
->
journal
);
(
void
)
remove
(
zone
->
journal
);
}
}
}
}
dns_db_closeversion
(
db
,
&
ver
,
ISC_FALSE
);
dns_db_closeversion
(
db
,
&
ver
,
ISC_FALSE
);
isc_log_write
(
dns_lctx
,
DNS_LOGCATEGORY_GENERAL
,
isc_log_write
(
dns_lctx
,
DNS_LOGCATEGORY_GENERAL
,
...
...
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