~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/trx/trx0trx.cc

edit

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
        trx->autoinc_locks = ib_vector_create(
187
187
                mem_heap_create(sizeof(ib_vector_t) + sizeof(void*) * 4), 4);
188
188
 
189
 
        trx->log_commit_id= FALSE;
190
 
 
191
189
        return(trx);
192
190
}
193
191
 
774
772
 
775
773
                mutex_exit(&(rseg->mutex));
776
774
 
777
 
                /* Update the highest commit id currently in the system */
778
 
                if (trx_log_commit_id(trx))
779
 
                {
780
 
                        mutex_enter(&commit_id_mutex);
781
 
                        trx_sys_flush_commit_id(trx_sys_commit_id,
782
 
                                                TRX_SYS_DRIZZLE_LOG_INFO,
783
 
                                                &mtr);
784
 
                        mutex_exit(&commit_id_mutex);
 
775
                /* Update the latest MySQL binlog name and offset info
 
776
                in trx sys header if MySQL binlogging is on or the database
 
777
                server is a MySQL replication slave */
 
778
 
 
779
                if (trx->mysql_log_file_name
 
780
                    && trx->mysql_log_file_name[0] != '\0') {
 
781
                        trx_sys_update_mysql_binlog_offset(
 
782
                                trx->mysql_log_file_name,
 
783
                                trx->mysql_log_offset,
 
784
                                TRX_SYS_MYSQL_LOG_INFO, &mtr);
 
785
                        trx->mysql_log_file_name = NULL;
785
786
                }
786
787
 
787
788
                /* The following call commits the mini-transaction, making the