#define BDB_ID2ENTRY_PAGESIZE 16384
#endif
-#ifndef BDB_PAGESIZE
-#define BDB_PAGESIZE 4096 /* BDB's original default */
-#endif
-
#define DEFAULT_CACHE_SIZE 1000
/* The default search IDL stack cache depth */
}
}
- /* If no explicit size set, use the default */
+ /* If no explicit size set, use the FS default */
flags = bdb_db_findsize( bdb, name );
- if ( !flags ) flags = BDB_PAGESIZE;
- rc = db->bdi_db->set_pagesize( db->bdi_db, flags );
+ if ( flags )
+ rc = db->bdi_db->set_pagesize( db->bdi_db, flags );
#ifdef BDB_INDEX_USE_HASH
rc = db->bdi_db->set_h_hash( db->bdi_db, bdb_db_hash );
flags |= DB_CREATE;
}
} else {
- if ( !rc ) rc = BDB_PAGESIZE;
- rc = db->bdi_db->set_pagesize( db->bdi_db, rc );
+ /* Use FS default size if not configured */
+ if ( rc )
+ rc = db->bdi_db->set_pagesize( db->bdi_db, rc );
rc = db->bdi_db->set_flags( db->bdi_db,
DB_DUP | DB_DUPSORT );