~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to sql/ha_ndbcluster_binlog.cc

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2000-2003 MySQL AB
 
1
/* Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  This program is free software; you can redistribute it and/or modify
4
4
  it under the terms of the GNU General Public License as published by
11
11
 
12
12
  You should have received a copy of the GNU General Public License
13
13
  along with this program; if not, write to the Free Software
14
 
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
 
*/
 
14
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA */
16
15
 
17
16
#include "mysql_priv.h"
18
17
#include "sql_show.h"
1198
1197
  }
1199
1198
 
1200
1199
  if (ndb_error)
 
1200
  {
 
1201
    char buf[1024];
 
1202
    my_snprintf(buf, sizeof(buf), "Could not release lock on '%s.%s'",
 
1203
                db, table_name);
1201
1204
    push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
1202
1205
                        ER_GET_ERRMSG, ER(ER_GET_ERRMSG),
1203
 
                        ndb_error->code,
1204
 
                        ndb_error->message,
1205
 
                        "Could not release lock on '%s.%s'",
1206
 
                        db, table_name);
 
1206
                        ndb_error->code, ndb_error->message, buf);
 
1207
  }
1207
1208
  if (trans)
1208
1209
    ndb->closeTransaction(trans);
1209
1210
  ndb->setDatabaseName(save_db);