~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/trx/trx0i_s.c

Merge Revision revid:svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6790 from MySQL InnoDB

Original revid:svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6790

Original Authors: jyang
Original commit message:
branches/zip: Fix bug #51356: "many valgrind errors in error messages
with concurrent ddl". Null terminate the name string returned
from innobase_convert_identifier() call when reporting DB_DUPLICATE_KEY
error in create_table_def().
rb://266 approved by Marko

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 2007, 2010, 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
29
29
*******************************************************/
30
30
 
31
31
#include "config.h"
32
 
/* Found during the build of 5.5.3 on Linux 2.4 and early 2.6 kernels:
33
 
   The includes "univ.i" -> "my_global.h" cause a different path
34
 
   to be taken further down with pthread functions and types,
35
 
   so they must come first.
36
 
   From the symptoms, this is related to bug#46587 in the MySQL bug DB.
37
 
*/
38
 
#include "univ.i"
39
32
 
40
33
#if !defined(BUILD_DRIZZLE)
41
34
# include <mysql/plugin.h>
43
36
 
44
37
#include "mysql_addons.h"
45
38
 
 
39
#include "univ.i"
46
40
#include "buf0buf.h"
47
41
#include "dict0dict.h"
48
42
#include "ha0storage.h"