break;
}
tmp = id;
- rc = cursor->c_put( cursor, key, &data, DB_CURRENT );
+ rc = cursor->c_put( cursor, key, &data, DB_KEYFIRST );
if ( rc != 0 ) {
cursor->c_close( cursor );
err = "c_put";
}
if ( bdb->bi_idl_cache_max_size ) {
+ bdb_idl_cache_del( bdb, db, key );
bdb_idl_cache_put( bdb, db, key, idl, 0 );
}
return rc;
}
if ( isrange && rc == 0 ) {
tmp = ( id == lo ) ? idl[1] : idl[2];
- rc = cursor->c_put( cursor, key, &data, DB_CURRENT );
+ rc = cursor->c_put( cursor, key, &data, DB_KEYFIRST );
if ( rc != 0 ) {
err = "c_put";
}
return rc;
}
if ( bdb->bi_idl_cache_max_size ) {
+ bdb_idl_cache_del( bdb, db, key );
bdb_idl_cache_put( bdb, db, key, idl, 0 );
}