if (mLayoutOutOfDate) {
// If the layout was updated, roll back the transaction and throw an Exception to indicate
// the need to retry.
rollback();
// TODO: SCHEMA-468 improve error message for LayoutUpdatedException.
throw new LayoutUpdatedException(
"Table layout was updated during a transaction, please retry.");
} else {
return mWriterLayoutCapsule;
}
}