Skip to content

Commit b98be03

Browse files
committed
Fix the Windows glitch
1 parent f218500 commit b98be03

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

storage/innobase/log/log0recv.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,9 +1839,6 @@ dberr_t recv_sys_t::find_checkpoint()
18391839
continue;
18401840
}
18411841
size= filesize.QuadPart;
1842-
#if 1 // FIXME
1843-
sql_print_information("found %s(%lx)", fn, entry.dwFileAttributes);
1844-
#endif
18451842
log_archive.emplace
18461843
(lsn, archive_log{lsn - log_t::START_OFFSET + size,
18471844
log_t::log_access(entry.dwFileAttributes &
@@ -3773,7 +3770,8 @@ bool log_t::archived_switch_recovery_prepare(lsn_t lsn) noexcept
37733770
static_assert(int{READ_WRITE} == 0, "");
37743771
static_assert(int{READ_ONLY} == 1, "");
37753772
resize_log.m_file= os_file_create_func(fn, OS_FILE_OPEN, OS_LOG_FILE,
3776-
int{i->second.access} > 0, &success);
3773+
i->second.access > 0 || recv_sys.rpo,
3774+
&success);
37773775
ut_ad(success == (resize_log.m_file != OS_FILE_CLOSED));
37783776
if (resize_log.m_file == OS_FILE_CLOSED)
37793777
{

0 commit comments

Comments
 (0)