~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/trx/trx0roll.c

Tags: innodb-plugin-1.0.2
InnoDB Plugin 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
374
374
}
375
375
 
376
376
/***********************************************************************
 
377
Determines if this transaction is rolling back an incomplete transaction
 
378
in crash recovery. */
 
379
UNIV_INTERN
 
380
ibool
 
381
trx_is_recv(
 
382
/*========*/
 
383
                                /* out: TRUE if trx is an incomplete
 
384
                                transaction that is being rolled back
 
385
                                in crash recovery */
 
386
        const trx_t*    trx)    /* in: transaction */
 
387
{
 
388
        return(trx == trx_roll_crash_recv_trx);
 
389
}
 
390
 
 
391
/***********************************************************************
377
392
Returns a transaction savepoint taken at this point in time. */
378
393
UNIV_INTERN
379
394
trx_savept_t
491
506
                        fputs(" in recovery\n", stderr);
492
507
 
493
508
                        err = row_drop_table_for_mysql(table->name, trx, TRUE);
 
509
                        trx_commit_for_mysql(trx);
494
510
 
495
511
                        ut_a(err == (int) DB_SUCCESS);
496
512
                }