~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.cc

merge with latest from the trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
702
702
      return(1);
703
703
    }
704
704
 
705
 
    if (   is_real_trans
706
 
        && opt_readonly
707
 
        && ! session->slave_thread
708
 
       )
709
 
    {
710
 
      my_error(ER_OPTION_PREVENTS_STATEMENT, MYF(0), "--read-only");
711
 
      ha_rollback_trans(session, all);
712
 
      error= 1;
713
 
      goto end;
714
 
    }
715
 
 
716
705
    must_2pc= ha_check_and_coalesce_trx_read_only(session, ha_info, all);
717
706
 
718
707
    if (!trans->no_2pc && must_2pc)