mariadb/mysql-test/suite
Luis Soares 2fe9fb2b47 BUG#40611: MySQL cannot make a binary log after sequential number
beyond unsigned long.
BUG#44779: binlog.binlog_max_extension may be causing failure on 
next test in PB
            
NOTE1: this is the backport to next-mr.
NOTE2: already includes patch for BUG#44779.
            
Binlog file extensions would turn into negative numbers once the
variable used to hold the value reached maximum for signed
long. Consequently, incrementing value to the next (negative) number
would lead to .000000 extension, causing the server to fail.
                        
This patch addresses this issue by not allowing negative extensions
and by returning an error on find_uniq_filename, when the limit is
reached. Additionally, warnings are printed to the error log when the
limit is approaching. FLUSH LOGS will also report warnings to the
user, if the extension number has reached the limit. The limit has been
set to 0x7FFFFFFF as the maximum.

mysql-test/suite/binlog/t/binlog_max_extension.test:
  Test case added that checks the maximum available number for
  binlog extensions.
sql/log.cc:
  Changes to find_uniq_filename and test_if_number.
sql/log.h:
  Added macros with values for MAX_LOG_UNIQUE_FN_EXT and
  LOG_WARN_UNIQUE_FN_EXT_LEFT, as suggested in review.
2009-11-22 03:59:48 +00:00
..
binlog BUG#40611: MySQL cannot make a binary log after sequential number 2009-11-22 03:59:48 +00:00
bugs
federated merging 5.1 main -> rpl+2. Some manual work required mostly due to bug46640 2009-11-06 18:35:04 +02:00
funcs_1 Backport Post fix of result files after push of BUG#34227 2009-10-02 17:12:10 +08:00
funcs_2
ibmdb2i
im
innodb Applying InnoDB Plugin 1.0.5 snapshot, part 10 2009-10-09 19:07:47 +05:30
jp
large_tests
manual
ndb
ndb_team
parts merging 5.1 main -> rpl+2. Some manual work required mostly due to bug46640 2009-11-06 18:35:04 +02:00
rpl Bug #48463 backporting from 6.0-rpl to celosia a set of bugs 2009-11-20 15:30:35 +02:00
rpl_ndb manual merge: mysql-5.1-rep+2 (bug tree) --> mysql-5.1-rep+2 (latest) 2009-11-13 10:17:53 +00:00
stress
sys_vars Backport Post fix of result files after push of BUG#34227 2009-10-02 17:12:10 +08:00