=== modified file 'sql/rpl_master.cc' --- sql/rpl_master.cc 2013-11-12 16:51:48 +0000 +++ sql/rpl_master.cc 2014-02-15 15:02:32 +0000 @@ -2016,6 +2016,7 @@ field_list.push_back(new Item_empty_string("Log_name", 255)); field_list.push_back(new Item_return_int("File_size", 20, MYSQL_TYPE_LONGLONG)); + field_list.push_back(new Item_return_int("Timestamp", 20, MYSQL_TYPE_LONGLONG)); if (protocol->send_result_set_metadata(&field_list, Protocol::SEND_NUM_ROWS | Protocol::SEND_EOF)) DBUG_RETURN(TRUE); @@ -2035,7 +2036,9 @@ while ((length=my_b_gets(index_file, fname, sizeof(fname))) > 1) { int dir_len; + MY_STAT s; ulonglong file_length= 0; // Length if open fails + ulonglong changetime= 0; fname[--length] = '\0'; // remove the newline protocol->prepare_for_resend(); @@ -2057,6 +2060,9 @@ } } protocol->store(file_length); + mysql_file_stat(key_file_binlog, fname, &s, MYF(0)); + changetime = (ulonglong) s.st_mtime; + protocol->store(changetime); if (protocol->write()) { DBUG_PRINT("info", ("stopping dump thread because protocol->write failed at line %d", __LINE__));