Submitted By: Igor Zivkovic <igor@linuxfromscratch.org>
Date: 2005-01-10
Initial Package Version: 3.3.2
Upstream Status: Not submitted.
Origin: http://www.sleepycat.com/docs/ref/upgrade.4.3/toc.html
Description: Adds support for Berkeley DB-4.3.x.
old
|
new
|
|
728 | 728 | DataBaseManager::count () |
729 | 729 | { |
730 | 730 | DB_BTREE_STAT *dstat = 0; |
731 | | db->stat (db, &dstat, DB_FAST_STAT); |
| 731 | db->stat (db, NULL, &dstat, DB_FAST_STAT); |
732 | 732 | int ret = dstat->bt_nkeys; |
733 | 733 | free (dstat); |
734 | 734 | |
… |
… |
|
963 | 963 | int nrec; |
964 | 964 | DB_BTREE_STAT *stat; |
965 | 965 | // memset(&stat,0,sizeof(DB_BTREE_STAT)); |
966 | | if (infoDb->stat (infoDb, &stat, DB_FAST_STAT)) |
| 966 | if (infoDb->stat (infoDb, NULL, &stat, DB_FAST_STAT)) |
967 | 967 | fprintf (stderr, "Cannot stat\n"); |
968 | 968 | nrec = stat->bt_nkeys; |
969 | 969 | free (stat); |