aboutsummaryrefslogtreecommitdiff
path: root/iomt.h
diff options
context:
space:
mode:
Diffstat (limited to 'iomt.h')
-rw-r--r--iomt.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/iomt.h b/iomt.h
index 1c0c0f7..723ce6c 100644
--- a/iomt.h
+++ b/iomt.h
@@ -41,7 +41,11 @@ struct iomt {
sqlite3_stmt *getnode, *updatenode, *insertnode;
sqlite3_stmt *getleaf, *updateleaf, *insertleaf;
- sqlite3_stmt *findleaf, *findencloser, *findleaf_or_encloser;
+ sqlite3_stmt *findleaf;
+ sqlite3_stmt *findencloser[3]; /* 3 cases, OR'd together
+ * (we run them
+ * individually so they're
+ * O(logn) each */
} db;
struct {
hash_t *mt_nodes; /* this has 2 * mt_leafcount - 1 elements. Note