|
Release 3.0: the DBINFO structureThe DB_INFO structure has been removed from the Berkeley DB 3.0 release. Accesses to any fields within that structure by the application should be replaced with method calls on the DB handle. The following example illustrates this using the historic db_cachesize structure field. In the Berkeley DB 2.X releases, applications could set the size of an underlying database cache using code similar to the following: DB_INFO dbinfo; in the Berkeley DB 3.X releases, this should be done using the DB->set_cachesize method, as follows: DB *db; int ret; The DB_INFO structure is no longer used in any way by the Berkeley DB 3.0 release, and should be removed from the application. The following table lists the DB_INFO fields previously used by applications and the methods that should now be used to set them. Because these calls provide configuration for the database open, they must precede the call to DB->open. Calling them after the call to DB->open will return an error.
|