summaryrefslogtreecommitdiff
path: root/sql/sql_repl.cc
diff options
context:
space:
mode:
authorbrian@zim.(none) <>2006-03-23 05:51:31 -0800
committerbrian@zim.(none) <>2006-03-23 05:51:31 -0800
commitbdfb7180cae3223170a173269870be37209a2924 (patch)
tree798167a87d35cff6ca6dc3c86b71b000dd60d31e /sql/sql_repl.cc
parent68c2dffb02934a62d230182b976762bf91974157 (diff)
downloadmariadb-git-bdfb7180cae3223170a173269870be37209a2924.tar.gz
Refactored some code to remove ifdef and removed dead code related to un-useable sync code.
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r--sql/sql_repl.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc
index 743a0a6b565..e900d33f743 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -386,9 +386,6 @@ impossible position";
goto err;
}
- if (thd->variables.sync_replication)
- ha_repl_report_sent_binlog(thd, log_file_name, pos);
-
/*
We need to start a packet with something other than 255
to distinguish it from error
@@ -475,9 +472,6 @@ impossible position";
goto err;
}
- if (thd->variables.sync_replication)
- ha_repl_report_sent_binlog(thd, log_file_name, my_b_tell(&log));
-
/*
No need to save this event. We are only doing simple reads
(no real parsing of the events) so we don't need it. And so
@@ -536,9 +530,6 @@ impossible position";
goto err;
}
- if (thd->variables.sync_replication)
- ha_repl_report_sent_binlog(thd, log_file_name, my_b_tell(&log));
-
DBUG_PRINT("info", ("log event code %d",
(*packet)[LOG_EVENT_OFFSET+1] ));
if ((*packet)[LOG_EVENT_OFFSET+1] == LOAD_EVENT)
@@ -652,9 +643,6 @@ impossible position";
goto err;
}
- if (thd->variables.sync_replication)
- ha_repl_report_sent_binlog(thd, log_file_name, my_b_tell(&log));
-
if ((*packet)[LOG_EVENT_OFFSET+1] == LOAD_EVENT)
{
if (send_file(thd))
@@ -721,18 +709,12 @@ impossible position";
goto err;
}
- if (thd->variables.sync_replication)
- ha_repl_report_sent_binlog(thd, log_file_name, 0);
-
packet->length(0);
packet->append('\0');
}
}
end:
- if (thd->variables.sync_replication)
- ha_repl_report_replication_stop(thd);
-
end_io_cache(&log);
(void)my_close(file, MYF(MY_WME));
@@ -744,9 +726,6 @@ end:
DBUG_VOID_RETURN;
err:
- if (thd->variables.sync_replication)
- ha_repl_report_replication_stop(thd);
-
thd->proc_info = "Waiting to finalize termination";
end_io_cache(&log);
/*