summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorunknown <brian@zim.(none)>2006-09-07 12:34:12 -0700
committerunknown <brian@zim.(none)>2006-09-07 12:34:12 -0700
commit0c7b78bbedcfb80948fca795ff292766ea91667b (patch)
tree3667672719d654866b6fae09b5e74d20d1d227eb /storage
parent7795b59afc1013215c899321575ddf8c9f3ab247 (diff)
downloadmariadb-git-0c7b78bbedcfb80948fca795ff292766ea91667b.tar.gz
Fix for a compile problem in Windows.
sql/CMakeLists.txt: Compile problem for Windoows storage/innobase/handler/ha_innodb.cc: Removed some dead code (Marko approved)
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/handler/ha_innodb.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 9bf347a1f29..405b5f14bb8 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -1599,21 +1599,6 @@ innobase_init(void)
pthread_cond_init(&commit_cond, NULL);
innodb_inited= 1;
- /* If this is a replication slave and we needed to do a crash recovery,
- set the master binlog position to what InnoDB internally knew about
- how far we got transactions durable inside InnoDB. There is a
- problem here: if the user used also MyISAM tables, InnoDB might not
- know the right position for them.
-
- THIS DOES NOT WORK CURRENTLY because replication seems to initialize
- glob_mi also after innobase_init. */
-
-/* if (trx_sys_mysql_master_log_pos != -1) {
- ut_memcpy(glob_mi.log_file_name, trx_sys_mysql_master_log_name,
- 1 + ut_strlen(trx_sys_mysql_master_log_name));
- glob_mi.pos = trx_sys_mysql_master_log_pos;
- }
-*/
DBUG_RETURN(FALSE);
error:
have_innodb= SHOW_OPTION_DISABLED; // If we couldn't use handler
@@ -1688,19 +1673,6 @@ innobase_commit_low(
return;
}
-#ifdef DISABLED_HAVE_REPLICATION
- THD *thd=current_thd;
-
- if (thd && thd->slave_thread) {
- /* Update the replication position info inside InnoDB */
-
- trx->mysql_master_log_file_name
- = active_mi->rli.group_master_log_name;
- trx->mysql_master_log_pos = ((ib_longlong)
- active_mi->rli.future_group_master_log_pos);
- }
-#endif /* HAVE_REPLICATION */
-
trx_commit_for_mysql(trx);
}