Skip to content
Snippets Groups Projects
Commit e2173e3c authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Disallow duplicate duplicate data

parent c2e162c6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment