Skip to content

Commit

Permalink
btree/btree.h: Allow to override MINCACHE, DEFPSIZE.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Sep 10, 2017
1 parent dab957d commit 35aaec4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions btree/btree.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@
#include <mpool.h>

#define DEFMINKEYPAGE (2) /* Minimum keys per page */
#ifndef MINCACHE
#define MINCACHE (5) /* Minimum cached pages */
#endif
#define MINPSIZE (512) /* Minimum page size */
#ifndef DEFPSIZE
#define DEFPSIZE (4096) /* Default page size */
#endif

/*
* Page 0 of a btree file contains a copy of the meta-data. This page is also
Expand Down

0 comments on commit 35aaec4

Please sign in to comment.