Disallow duplicate duplicate data

This commit is contained in:
Kurt Zeilenga 2001-12-08 04:30:23 +00:00
parent c2e162c6d6
commit e2173e3c20
2 changed files with 3 additions and 2 deletions

View File

@ -70,7 +70,8 @@ bdb_db_cache(
rc = db->bdi_db->set_pagesize( db->bdi_db, BDB_PAGESIZE );
#ifdef BDB_IDL_MULTI
rc = db->bdi_db->set_flags( db->bdi_db, DB_DUP | DB_DUPSORT );
rc = db->bdi_db->set_flags( db->bdi_db,
DB_DUP | DB_DUPSORT | DB_NODUPDATA );
rc = db->bdi_db->set_dup_compare( db->bdi_db, bdb_bt_compare );
#endif

View File

@ -259,7 +259,7 @@ bdb_db_open( BackendDB *be )
bdb_bt_compare );
#elif defined(BDB_IDL_MULTI)
rc = db->bdi_db->set_flags( db->bdi_db,
DB_DUP | DB_DUPSORT );
DB_DUP | DB_DUPSORT | DB_NODUPDATA );
rc = db->bdi_db->set_dup_compare( db->bdi_db,
bdb_bt_compare );
#endif