|
|
|
@ -740,7 +740,7 @@ int
|
|
|
|
|
DataBaseManager::count ()
|
|
|
|
|
{
|
|
|
|
|
DB_BTREE_STAT *dstat = 0;
|
|
|
|
|
#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3
|
|
|
|
|
#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3) || (DB_VERSION_MAJOR >= 5)
|
|
|
|
|
db->stat (db, NULL, &dstat, DB_FAST_STAT);
|
|
|
|
|
#else
|
|
|
|
|
db->stat (db, &dstat, DB_FAST_STAT);
|
|
|
|
@ -979,7 +979,7 @@ DataBaseManager::loadInfo ()
|
|
|
|
|
int nrec;
|
|
|
|
|
DB_BTREE_STAT *stat;
|
|
|
|
|
// memset(&stat,0,sizeof(DB_BTREE_STAT));
|
|
|
|
|
#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3
|
|
|
|
|
#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3) || (DB_VERSION_MAJOR >= 5)
|
|
|
|
|
if (infoDb->stat (infoDb, NULL, &stat, DB_FAST_STAT))
|
|
|
|
|
fprintf (stderr, "Cannot stat\n");
|
|
|
|
|
#else
|
|
|
|
|