luke.pearson the changes for WT-5540 appear to have compilation errors for some configurations. You can see the errors here http://build.wiredtiger.com:8080/job/wiredtiger/7543/console
They're of the form (there are many, this is just a sampling):
../src/btree/bt_cursor.c: In function ‘__btcur_update’: ../src/include/misc.h:169:40: error: ‘state.flags’ may be used uninitialized in this function [-Werror=maybe-uninitialized] #define FLD_MASK(field, mask) ((field) & (mask)) ^ ../src/btree/bt_cursor.c:1200:22: note: ‘state.flags’ was declared here WT_CURFILE_STATE state; ^ ../src/btree/bt_cursor.c:47:19: error: ‘state.recno’ may be used uninitialized in this function [-Werror=maybe-uninitialized] cursor->recno = state->recno;