/*
* Handle cursorget.
*
* We can't just read keys and values directly, because we can't walk
* the list with qdlock and grab dq_interlock to read the entries at
* the same time. So we're going to do two passes: one to figure out
* which IDs we want and fill in the keys, and then a second to use
* the keys to fetch the values.
*/