wiredtiger/wiredtiger — pull request #250 by keithbostic (2012-06-27 16:38:16+00:00)
Title: Row key ref

Michael, I suggest we merge the places where we have fast-track code for getting a reference to a key into a function.

This change does that (I merged your changes separately so you can create a patch for the master more easily).

The significant change in this diff is replacing the code in __wt_kv_return() and __wt_row_search() with a new inline function named __wt_row_key_ref(), that tries to fast-track getting a reference to the key, and falls back to __wt_row_key() if there's no fast-track path available.

I replaced a bunch of code in salvage to use the new routine, too, obviously that's less interesting.

There are no bug fixes or performance improvements in this change, it's purely semantic sugar to move a bunch of code into a common function.