Commit facc1abc authored by Yoni Fogel's avatar Yoni Fogel

When checking openflags from an ondisk header, ignore DB_CREATE and DB_EXCL

git-svn-id: file:///svn/tokudb@695 c7de825b-a66e-492c-adef-691d508d4ae1
parent 673bd545
......@@ -1557,6 +1557,9 @@ int brt_open(BRT t, const char *fname, const char *fname_in_env, const char *dbn
}
t->h->dirty=1;
t->h->flags = t->flags;
/* These flags do not need to match. */
t->h->flags &= ~DB_CREATE;
t->h->flags &= ~DB_EXCL;
t->h->nodesize=t->nodesize;
t->h->freelist=-1;
t->h->unused_memory=2*t->nodesize;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment