Journal evolution
Compare changes
+ 79
− 71
@@ -114,6 +114,7 @@ typedef struct {
@@ -133,14 +134,10 @@ static void md_set32(txn_t *txn, const knot_dname_t *zone, const char *mdkey, ui
@@ -248,18 +245,15 @@ static void txn_val_u64(txn_t *txn, uint64_t *res)
@@ -267,6 +261,7 @@ static void txn_begin(txn_t *txn, bool write_allowed)
@@ -280,41 +275,38 @@ static void txn_begin(txn_t *txn, bool write_allowed)
@@ -364,13 +356,10 @@ static void txn_iter_finish(txn_t *txn)
@@ -396,7 +385,7 @@ static void txn_commit(txn_t *txn)
@@ -404,7 +393,8 @@ static void txn_commit(txn_t *txn)
@@ -439,7 +429,7 @@ static void txn_unreuse(txn_t **txn, txn_t *reused)
@@ -462,7 +452,7 @@ static void md_get32(txn_t *txn, const knot_dname_t *zone, const char *mdkey, ui
@@ -484,7 +474,7 @@ static int md_set_common_last_inserter_zone(txn_t *txn, knot_dname_t *zone)
@@ -622,7 +612,7 @@ static int initial_md_check(journal_t *j, bool *dirty_present)
@@ -663,12 +653,17 @@ static void get_iter_next(iteration_ctx_t *ctx, iteration_cb_t key_cb)
@@ -746,7 +741,7 @@ static int iterate(journal_t *j, txn_t *_txn, iteration_cb_t cb, int method,
@@ -822,11 +817,11 @@ static int load_one(journal_t *j, txn_t *_txn, uint32_t serial, changeset_t **ch
@@ -844,7 +839,7 @@ static int load_merged_changeset(journal_t *j, txn_t *_txn, changeset_t **mch,
@@ -866,7 +861,7 @@ int journal_load_changesets(journal_t *j, list_t *dst, uint32_t from)
@@ -894,11 +889,11 @@ static int load_bootstrap_changeset(journal_t *j, txn_t *_txn, changeset_t **ch)
@@ -925,7 +920,7 @@ int journal_load_bootstrap(journal_t *j, list_t *dst)
@@ -988,7 +983,7 @@ static int delete_merged_changeset(journal_t *j, txn_t *t)
@@ -1004,7 +999,7 @@ static int drop_journal(journal_t *j, txn_t *_txn)
@@ -1061,8 +1056,10 @@ static int delete_tofree(journal_t *j, txn_t *_txn, size_t to_be_freed, size_t *
@@ -1113,8 +1110,10 @@ static int delete_count(journal_t *j, txn_t *_txn, size_t to_be_deleted, size_t
@@ -1132,10 +1131,10 @@ static int delete_dirty_serial(journal_t *j, txn_t *_txn)
@@ -1173,6 +1172,7 @@ static int merge_unflushed_changesets(journal_t *j, txn_t *_txn, changeset_t **m
@@ -1183,16 +1183,18 @@ static int merge_unflushed_changesets(journal_t *j, txn_t *_txn, changeset_t **m
@@ -1201,6 +1203,9 @@ m_u_ch_end:
@@ -1301,7 +1306,10 @@ static int store_changesets(journal_t *j, list_t *changesets)
@@ -1422,7 +1430,7 @@ store_changeset_cleanup:
@@ -1444,7 +1452,7 @@ store_changeset_cleanup:
@@ -1633,7 +1641,7 @@ int journal_flush(journal_t *journal)
@@ -1657,10 +1665,10 @@ bool journal_exists(journal_db_t **db, knot_dname_t *zone_name)
@@ -1737,7 +1745,7 @@ void journal_metadata_info(journal_t *j, bool *is_empty, uint32_t *serial_from,
@@ -1798,7 +1806,7 @@ int journal_db_list_zones(journal_db_t **db, list_t *zones)
@@ -1840,7 +1848,7 @@ static void _jch_print(const knot_dname_t *zname, int warn_level, const char *fo
@@ -1986,7 +1994,7 @@ int journal_check(journal_t *j, journal_check_level_t warn_level)