You can use DB_UNKNOWN as a dbtype (as long as you don't use DB_EXCL) in dbopen,
and then it will load the flags from the file.
tokudb_dump
Now supports duplicates/sorted duplicates.
tokudb_load will give a warning about any duplicate duplicate loads
but will continue with the rest of the data.
Closes#148Closes#166
git-svn-id: file:///svn/tokudb@1086 c7de825b-a66e-492c-adef-691d508d4ae1
We never touch ulen. If DB_DBT_USERMEM and ulen is too small, we set size, (do not write anything)
and return DB_BUFFER_SMALL.
This includes test_db_dbt_mem_behavior.c
Closes#146
git-svn-id: file:///svn/tokudb@1034 c7de825b-a66e-492c-adef-691d508d4ae1
Added DB_SECONDARY_BAD to db.h
Added DB_CURRENT to db.h
DB->get (now returns DB_SECONDARY_BAD when appropriate)
DB->pget (now returns DB_SECONDARY_BAD when appropriate)
** DBC->c_get (works with associate)
** DBC->c_pget (added function, works with associate, but not in header yet)
** *DBC->c_del (works with associate)
*DB->del (works with associate)
* May not work properly with duplicates.
* Question: Do I have to use
search_val.flags = DB_DBT_MALLOC;
and
free(search_val.data);
** Requires DB_CURRENT to be supported in toku_brt_cursor_get
}}}
addresses #48
git-svn-id: file:///svn/tokudb@890 c7de825b-a66e-492c-adef-691d508d4ae1