~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/buf/buf0buf.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-04 19:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110704191147-s99ojek811zi1fzj
Remove unused Name_resolution_context::error_reporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
#include "log0recv.h"
53
53
#include "page0zip.h"
54
54
 
 
55
#include <drizzled/errmsg_print.h>
 
56
 
55
57
/*
56
58
                IMPLEMENTATION OF THE BUFFER POOL
57
59
                =================================
320
322
 
321
323
        /* When we traverse all the flush lists we don't want another
322
324
        thread to add a dirty page to any flush list. */
323
 
        log_flush_order_mutex_enter();
 
325
        if (srv_buf_pool_instances > 1)
 
326
                log_flush_order_mutex_enter();
324
327
 
325
328
        for (i = 0; i < srv_buf_pool_instances; i++) {
326
329
                buf_pool_t*     buf_pool;
527
530
                     < mach_read_from_8(read_buf + FIL_PAGE_LSN))) {
528
531
                        ut_print_timestamp(stderr);
529
532
 
530
 
                        fprintf(stderr,
531
 
                                "  InnoDB: Error: page %lu log sequence number"
532
 
                                " %"PRIu64"\n"
533
 
                                "InnoDB: is in the future! Current system "
534
 
                                "log sequence number %"PRIu64".\n"
535
 
                                "InnoDB: Your database may be corrupt or "
536
 
                                "you may have copied the InnoDB\n"
537
 
                                "InnoDB: tablespace but not the InnoDB "
538
 
                                "log files. See\n"
539
 
                                "InnoDB: " REFMAN "forcing-recovery.html\n"
540
 
                                "InnoDB: for more information.\n",
541
 
                                (ulong) mach_read_from_4(read_buf
542
 
                                                         + FIL_PAGE_OFFSET),
543
 
                                mach_read_from_8(read_buf + FIL_PAGE_LSN),
544
 
                                current_lsn);
 
533
                        drizzled::errmsg_printf(drizzled::error::INFO,
 
534
                                                "InnoDB: Error: page %lu log sequence number %"PRIu64". "
 
535
                                                "InnoDB: is in the future! Current system log sequence number %"PRIu64". "
 
536
                                                "Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. See "
 
537
                                                " " REFMAN "forcing-recovery.html for more information. ",
 
538
                                                (ulong) mach_read_from_4(read_buf
 
539
                                                                         + FIL_PAGE_OFFSET),
 
540
                                                mach_read_from_8(read_buf + FIL_PAGE_LSN),
 
541
                                                current_lsn);
545
542
                }
546
543
        }
547
544
#endif
4057
4054
                        recv_recover_page(TRUE, (buf_block_t*) bpage);
4058
4055
                }
4059
4056
 
4060
 
                if (uncompressed && !recv_no_ibuf_operations) {
 
4057
                if (uncompressed && !recv_no_ibuf_operations && !srv_fake_write) {
4061
4058
                        ibuf_merge_or_delete_for_page(
4062
4059
                                (buf_block_t*) bpage, bpage->space,
4063
4060
                                bpage->offset, buf_page_get_zip_size(bpage),