michael.cahill, now that SERVER-23795 is resolved, can this code be removed from WiredTiger?
/*
* __im_handle_size --
* Return the handle's data size.
*/
static void
__im_handle_size(WT_FILE_HANDLE_INMEM *im_fh, wt_off_t *sizep)
{
/*
* XXX
* This function exists as a place for this comment. MongoDB assumes
* any file with content will have a non-zero size. In memory tables
* generally are zero-sized, make MongoDB happy.
*/
*sizep = im_fh->buf.size == 0 ? 1024 : (wt_off_t)im_fh->buf.size;
}