"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/utils/kjournalprint/main.c" between
knot-2.9.1.tar.xz and knot-2.9.2.tar.xz

About: Knot DNS is a high-performance authoritative-only DNS server (supports zone transfers, dynamic updates and DNSSEC).

main.c  (knot-2.9.1.tar.xz):main.c  (knot-2.9.2.tar.xz)
skipping to change at line 178 skipping to change at line 178
bool exists; bool exists;
uint64_t occupied, occupied_all; uint64_t occupied, occupied_all;
knot_lmdb_init(&jdb, path, 0, journal_env_flags(JOURNAL_MODE_ROBUST), NUL L); knot_lmdb_init(&jdb, path, 0, journal_env_flags(JOURNAL_MODE_ROBUST), NUL L);
int ret = knot_lmdb_open(&jdb); int ret = knot_lmdb_open(&jdb);
if (ret != KNOT_EOK) { if (ret != KNOT_EOK) {
knot_lmdb_deinit(&jdb); knot_lmdb_deinit(&jdb);
return ret; return ret;
} }
ret = journal_info(j, &exists, NULL, NULL, NULL, NULL, &occupied, &occupi ed_all); ret = journal_info(j, &exists, NULL, NULL, NULL, NULL, NULL, &occupied, & occupied_all);
if (ret != KNOT_EOK || !exists) { if (ret != KNOT_EOK || !exists) {
fprintf(stderr, "This zone does not exist in DB %s\n", path); fprintf(stderr, "This zone does not exist in DB %s\n", path);
knot_lmdb_deinit(&jdb); knot_lmdb_deinit(&jdb);
return ret == KNOT_EOK ? KNOT_ENOENT : ret; return ret == KNOT_EOK ? KNOT_ENOENT : ret;
} }
if (params->check) { if (params->check) {
ret = journal_sem_check(j); ret = journal_sem_check(j);
if (ret > 0) { if (ret > 0) {
fprintf(stderr, "Journal semantic check error: %d\n", ret ); fprintf(stderr, "Journal semantic check error: %d\n", ret );
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)