~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/srv/srv0srv.cc

  • Committer: patrick crews
  • Date: 2011-01-30 23:02:12 UTC
  • mto: This revision was merged to the branch mainline in revision 2131.
  • Revision ID: gleebix@gmail.com-20110130230212-nnts892jsc0oiurv
Added initial docs for dbqp.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
/* Dummy comment */
61
61
#include "srv0srv.h"
62
62
 
63
 
#include <drizzled/error.h>
64
 
#include <drizzled/errmsg_print.h>
65
 
 
66
63
#include "ut0mem.h"
67
64
#include "ut0ut.h"
68
65
#include "os0proc.h"
491
488
#ifdef UNIV_PFS_MUTEX
492
489
/* Key to register kernel_mutex with performance schema */
493
490
UNIV_INTERN mysql_pfs_key_t     kernel_mutex_key;
494
 
/* Key to protect writing the commit_id to the sys header */
495
 
UNIV_INTERN mysql_pfs_key_t     commit_id_mutex_key;
496
491
/* Key to register srv_innodb_monitor_mutex with performance schema */
497
492
UNIV_INTERN mysql_pfs_key_t     srv_innodb_monitor_mutex_key;
498
493
/* Key to register srv_monitor_file_mutex with performance schema */
751
746
UNIV_INTERN byte        srv_pad1[64];
752
747
/* mutex protecting the server, trx structs, query threads, and lock table */
753
748
UNIV_INTERN mutex_t*    kernel_mutex_temp;
754
 
/* mutex protecting the sys header for writing the commit id */
755
 
UNIV_INTERN mutex_t*    commit_id_mutex_temp;
756
 
 
757
749
/* padding to prevent other memory update hotspots from residing on
758
750
the same memory cache line */
759
751
UNIV_INTERN byte        srv_pad2[64];
1031
1023
        kernel_mutex_temp = static_cast<ib_mutex_t *>(mem_alloc(sizeof(mutex_t)));
1032
1024
        mutex_create(kernel_mutex_key, &kernel_mutex, SYNC_KERNEL);
1033
1025
 
1034
 
        commit_id_mutex_temp = static_cast<ib_mutex_t *>(mem_alloc(sizeof(mutex_t)));
1035
 
        mutex_create(commit_id_mutex_key, &commit_id_mutex, SYNC_COMMIT_ID_LOCK);
1036
 
 
1037
1026
        mutex_create(srv_innodb_monitor_mutex_key,
1038
1027
                     &srv_innodb_monitor_mutex, SYNC_NO_ORDER_CHECK);
1039
1028
 
1122
1111
        mem_free(srv_mysql_table);
1123
1112
        srv_mysql_table = NULL;
1124
1113
 
1125
 
        mem_free(commit_id_mutex_temp);
1126
 
        commit_id_mutex_temp = NULL;
1127
 
 
1128
1114
        trx_i_s_cache_free(trx_i_s_cache);
1129
1115
}
1130
1116
 
2398
2384
        new_lsn = log_get_lsn();
2399
2385
 
2400
2386
        if (new_lsn < old_lsn) {
2401
 
          drizzled::errmsg_printf(drizzled::error::INFO,
2402
 
                                  "InnoDB: Error: old log sequence number %"PRIu64" was greater than the new log sequence number %"PRIu64"!"
2403
 
                                  "InnoDB: Please submit a bug report to http://bugs.launchpad.net/drizzle",
2404
 
                                  old_lsn, new_lsn);
 
2387
                ut_print_timestamp(stderr);
 
2388
                fprintf(stderr,
 
2389
                        "  InnoDB: Error: old log sequence number %"PRIu64""
 
2390
                        " was greater\n"
 
2391
                        "InnoDB: than the new log sequence number %"PRIu64"!\n"
 
2392
                        "InnoDB: Please submit a bug report"
 
2393
                        " to http://bugs.mysql.com\n",
 
2394
                        old_lsn, new_lsn);
2405
2395
        }
2406
2396
 
2407
2397
        old_lsn = new_lsn;