]> git.sur5r.net Git - openldap/commitdiff
meta init
authorHoward Chu <hyc@symas.com>
Wed, 29 Jun 2011 05:34:53 +0000 (22:34 -0700)
committerHoward Chu <hyc@symas.com>
Wed, 29 Jun 2011 05:34:53 +0000 (22:34 -0700)
libraries/libmdb/mdb.c

index a0740bcacb401afcebee5d941d3a976b6a374f1f..de2207aa6fffeb2387356cee014f949e1a0f41a6 100644 (file)
@@ -902,6 +902,7 @@ mdbenv_open2(MDB_env *env, unsigned int flags)
 
        env->me_flags = flags;
        env->me_meta.mm_root = P_INVALID;
+       env->me_meta.mm_last_pg = 2;
 
        if ((i = mdbenv_read_header(env)) != 0) {
                if (i != ENOENT)