summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2000-11-16 17:48:13 -0700
committerunknown <sasha@mysql.sashanet.com>2000-11-16 17:48:13 -0700
commit6e8c7df035f12f12f276837838dfbff25d4bb2a6 (patch)
treecd285c3f07b15bfe5524a733276fe9b7894f0550 /sql/log.cc
parent113fb0ffaa802ebb0550d3f5829d18eea916cf10 (diff)
downloadmariadb-git-6e8c7df035f12f12f276837838dfbff25d4bb2a6.tar.gz
sql/log.cc
fixed bug in find_first_log sql/mysqlbinlog.cc flose file only if we opened it sql/slave.cc changed spacing sql/sql_repl.cc fixed error message sql/log.cc: fixed bug in find_first_log sql/mysqlbinlog.cc: flose file only if we opened it sql/slave.cc: changed spacing sql/sql_repl.cc: fixed error message BitKeeper/etc/ignore: Added repl-tests/test-repl/foo-dump-slave.master. repl-tests/test-repl/sum-wlen-slave.master. repl-tests/test-repl/sum-wlen-slave.master.re to the ignore list
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 87b5d2362cf..1b53ca74d1a 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -267,7 +267,7 @@ int MYSQL_LOG::find_first_log(LOG_INFO* linfo, const char* log_name)
// if the log entry matches, empty string matching anything
if (!log_name_len ||
- (log_name_len == length+1 && fname[log_name_len] == '\n' &&
+ (log_name_len == length-1 && fname[log_name_len] == '\n' &&
!memcmp(fname, log_name, log_name_len)))
{
fname[length-1]=0; // remove last \n