4678 magnus.blaudd@stripped 2011-11-21 [merge]
Merge
modified:
sql/ha_ndbcluster_binlog.cc
4677 jonas oreland 2011-11-19
ndb - this patch rename c_tableRecordPool and c_triggerRecordPool by adding a _ at the end. This is only to avoid "merge" errors with code that assumes that tableId == ptr.i (which is no longer true)
modified:
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp
=== modified file 'sql/ha_ndbcluster_binlog.cc'
--- a/sql/ha_ndbcluster_binlog.cc 2011-11-10 10:35:09 +0000
+++ b/sql/ha_ndbcluster_binlog.cc 2011-11-21 07:38:02 +0000
@@ -3215,6 +3215,7 @@ ndb_binlog_thread_handle_schema_event_po
}
if (share)
{
+ pthread_mutex_lock(&share->mutex);
if (share->op)
{
Ndb_event_data *event_data= (Ndb_event_data *) share->op->getCustomData();
@@ -3228,6 +3229,7 @@ ndb_binlog_thread_handle_schema_event_po
share->op= 0;
free_share(&share);
}
+ pthread_mutex_unlock(&share->mutex);
free_share(&share);
}
@@ -3292,7 +3294,7 @@ ndb_binlog_thread_handle_schema_event_po
DBUG_PRINT("info", ("Detected frm change of table %s.%s",
schema->db, schema->name));
log_query= 1;
- build_table_filename(key, FN_LEN-1, schema->db, schema->name, NullS, 0);
+ build_table_filename(key, sizeof(key)-1, schema->db, schema->name, NullS, 0);
/*
If the there is no local table shadowing the altered table and
it has an frm that is different than the one on disk then
@@ -5054,8 +5056,8 @@ ndbcluster_check_if_local_table(const ch
char ndb_file[FN_REFLEN + 1];
DBUG_ENTER("ndbcluster_check_if_local_table");
- build_table_filename(key, FN_LEN-1, dbname, tabname, reg_ext, 0);
- build_table_filename(ndb_file, FN_LEN-1, dbname, tabname, ha_ndb_ext, 0);
+ build_table_filename(key, sizeof(key)-1, dbname, tabname, reg_ext, 0);
+ build_table_filename(ndb_file, sizeof(ndb_file)-1, dbname, tabname, ha_ndb_ext, 0);
/* Check that any defined table is an ndb table */
DBUG_PRINT("info", ("Looking for file %s and %s", key, ndb_file));
if ((! my_access(key, F_OK)) && my_access(ndb_file, F_OK))
No bundle (reason: useless for push emails).
| Thread |
|---|
| • bzr push into mysql-5.1-telco-7.0 branch (magnus.blaudd:4677 to 4678) | magnus.blaudd | 21 Nov |