From 6baf3ee74621d12a467e7b601a516743f195217a Mon Sep 17 00:00:00 2001
From: Marek Vavrusa <marek.vavrusa@nic.cz>
Date: Thu, 28 Nov 2013 18:19:23 +0100
Subject: [PATCH] Build order index on integrity checks.

---
 src/libknot/zone/zone-contents.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libknot/zone/zone-contents.c b/src/libknot/zone/zone-contents.c
index 3c04a1f66..3a01665bc 100644
--- a/src/libknot/zone/zone-contents.c
+++ b/src/libknot/zone/zone-contents.c
@@ -1968,6 +1968,8 @@ int knot_zc_integrity_check_child_count(check_data_t *data)
 	assert(ret == KNOT_EOK);
 	if (nodes_copy == NULL) {
 		return 1;
+	} else {
+		hattrie_build_index(nodes_copy);
 	}
 
 	// set children count of all nodes to 0
-- 
GitLab