Commit 6eb3ef84 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

tokudb does not implement the DB_RMW cursor get flag. updates were gettting...

tokudb does not implement the DB_RMW cursor get flag.  updates were gettting EINVAL fromthe storage engine. tokudb turns read locks into write locks when required, to the flag is just an optimization.  we plan on replacing the affected code with the tokudb delete both method in the future.



git-svn-id: file:///svn/mysql/tokudb-engine/src@2769 c7de825b-a66e-492c-adef-691d508d4ae1
parent c7b0b5f9
...@@ -1510,7 +1510,7 @@ int ha_tokudb::remove_key(DB_TXN * trans, uint keynr, const uchar * record, DBT ...@@ -1510,7 +1510,7 @@ int ha_tokudb::remove_key(DB_TXN * trans, uint keynr, const uchar * record, DBT
DBUG_ASSERT(keynr != primary_key && prim_key->data != key_buff2); DBUG_ASSERT(keynr != primary_key && prim_key->data != key_buff2);
DBC *tmp_cursor; DBC *tmp_cursor;
if (!(error = key_file[keynr]->cursor(key_file[keynr], trans, &tmp_cursor, 0))) { if (!(error = key_file[keynr]->cursor(key_file[keynr], trans, &tmp_cursor, 0))) {
if (!(error = tmp_cursor->c_get(tmp_cursor, create_key(&key, keynr, key_buff2, record), prim_key, DB_GET_BOTH | DB_RMW))) { // This shouldn't happen if (!(error = tmp_cursor->c_get(tmp_cursor, create_key(&key, keynr, key_buff2, record), prim_key, DB_GET_BOTH))) {
error = tmp_cursor->c_del(tmp_cursor, 0); error = tmp_cursor->c_del(tmp_cursor, 0);
} }
int result = tmp_cursor->c_close(tmp_cursor); int result = tmp_cursor->c_close(tmp_cursor);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment