From: Howard Chu Date: Thu, 11 Aug 2011 22:03:33 +0000 (-0700) Subject: Add another FIXME comment X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~148^2~112 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f5297dfc25a38c8ef82f320cbb8e7cf035dff63f;p=openldap Add another FIXME comment --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index b485e156fb..489bbde656 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -226,6 +226,9 @@ typedef struct MDB_ppage { /* ordered list of pages */ } MDB_ppage; SLIST_HEAD(page_stack, MDB_ppage); +/* FIXME: tree depth is mostly bounded, we should just + * use a fixed array and avoid malloc/pointer chasing + */ #define CURSOR_EMPTY(c) SLIST_EMPTY(&(c)->mc_stack) #define CURSOR_TOP(c) SLIST_FIRST(&(c)->mc_stack) #define CURSOR_POP(c) SLIST_REMOVE_HEAD(&(c)->mc_stack, mp_entry)