This assertion should be removed:
ASSERT_EQUALS(record, rs->dataFor(opCtxPtr.get(), loc).data());
KVEngine::recoverOrphanedIdent makes no guarantees about the integrity of data after orphan recovery, so it does not make sense to keep this assertion around.