commitFlushedMutations returns errors from commitMutations directly, without checking getUndeterminedErr(). The normal 2PC path checks this state and converts the error to ErrResultUndetermined.
If the primary commit response is lost and the request eventually fails, the transaction may already have committed. Although client-go records the undetermined state, pipelined DML can still return an ordinary cancellation or RPC error.
This may cause TiDB to skip its undetermined-result connection-close handling. Applications could treat the error as a normal failure and retry an already committed operation.
commitFlushedMutations returns errors from commitMutations directly, without checking getUndeterminedErr(). The normal 2PC path checks this state and converts the error to ErrResultUndetermined.
If the primary commit response is lost and the request eventually fails, the transaction may already have committed. Although client-go records the undetermined state, pipelined DML can still return an ordinary cancellation or RPC error.
This may cause TiDB to skip its undetermined-result connection-close handling. Applications could treat the error as a normal failure and retry an already committed operation.