Commit be974a23 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #828

replace bad NULL param with what the param should actually be

git-svn-id: file:///svn/mysql/tokudb-engine/src@3951 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0aa99acb
......@@ -2477,7 +2477,8 @@ int ha_tokudb::rnd_pos(uchar * buf, uchar * pos) {
DBT db_pos;
statistic_increment(table->in_use->status_var.ha_read_rnd_count, &LOCK_status);
active_index = MAX_KEY;
TOKUDB_DBUG_RETURN(read_row(file->get(file, transaction, get_pos(&db_pos, pos), &current_row, 0), buf, primary_key, &current_row, (DBT *) 0, 0));
DBT* key = get_pos(&db_pos, pos);
TOKUDB_DBUG_RETURN(read_row(file->get(file, transaction, key, &current_row, 0), buf, primary_key, &current_row, key, 0));
}
/*
......
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