~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/data_dictionary.cc

  • Committer: kalebral at gmail
  • Date: 2010-12-04 04:58:08 UTC
  • mto: (1971.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1972.
  • Revision ID: kalebral@gmail.com-20101204045808-acto22oxfg43m02e
a few more updates of files that did not have license or had incorrect license structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 2007, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 2007, 2009, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
22
22
 
23
23
#include "drizzled/current_session.h"
24
24
 
 
25
extern "C" {
25
26
#include "trx0i_s.h"
26
27
#include "trx0trx.h" /* for TRX_QUE_STATE_STR_MAX_LEN */
27
28
#include "buf0buddy.h" /* for i_s_cmpmem */
33
34
#include "dict0load.h"  /* for file sys_tables related info. */
34
35
#include "dict0mem.h"
35
36
#include "dict0types.h"
 
37
}
36
38
#include "handler0vars.h"
37
39
 
38
40
using namespace drizzled;
757
759
 
758
760
  if (trx_i_s_cache_is_truncated(trx_i_s_cache))
759
761
  {
760
 
    errmsg_printf(error::ERROR, _("Warning: data in %s truncated due to memory limit of %d bytes\n"), 
 
762
    errmsg_printf(ERRMSG_LVL_ERROR, _("Warning: data in %s truncated due to memory limit of %d bytes\n"), 
761
763
                  table_name, TRX_I_S_MEM_LIMIT);
762
764
  } 
763
765
 
845
847
   bufend = innobase_convert_name(buf, sizeof(buf),
846
848
                                  row->lock_table,
847
849
                                  strlen(row->lock_table),
848
 
                                  &getSession(), TRUE);
 
850
                                  current_session, TRUE);
849
851
   push(bufend);
850
852
 
851
853
   if (row->lock_index != NULL)
853
855
     bufend = innobase_convert_name(buf, sizeof(buf),
854
856
                                    row->lock_index,
855
857
                                    strlen(row->lock_index),
856
 
                                    &getSession(), FALSE);
 
858
                                    current_session, FALSE);
857
859
     push(bufend);     
858
860
   }
859
861
   else 
895
897
    push(static_cast<int64_t>(row->trx_weight));
896
898
    push(static_cast<uint64_t>(row->trx_mysql_thread_id));
897
899
    if (row->trx_query)
 
900
    {
898
901
      push(row->trx_query);
899
 
    else
900
 
      push();
901
 
 
902
 
    if (row->trx_operation_state)
903
 
      push(row->trx_operation_state);
904
 
    else
905
 
      push();
906
 
 
 
902
    }
 
903
    else
 
904
    {
 
905
      push();
 
906
    }
 
907
    push(row->trx_operation_state);
907
908
//    push(row->trx_tables_in_use);
908
909
    push(static_cast<uint64_t>(row->trx_tables_locked));
909
910
    push(static_cast<uint64_t>(row->trx_lock_structs));
914
915
    push(row->trx_isolation_level);
915
916
    push(static_cast<uint64_t>(row->trx_unique_checks));
916
917
    push(static_cast<uint64_t>(row->trx_foreign_key_checks));
917
 
    if (row->trx_foreign_key_error)
918
 
      push(row->trx_foreign_key_error);
919
 
    else
920
 
      push();
921
 
 
 
918
    push(row->trx_foreign_key_error);
922
919
    push(static_cast<uint64_t>(row->trx_has_search_latch));
923
920
    push(static_cast<uint64_t>(row->trx_search_latch_timeout));
924
921
}