diff --git a/storage/innobase/fsp/fsp0sysspace.cc b/storage/innobase/fsp/fsp0sysspace.cc index 0dd7d1c..a3c012f 100644 --- a/storage/innobase/fsp/fsp0sysspace.cc +++ b/storage/innobase/fsp/fsp0sysspace.cc @@ -570,8 +570,10 @@ SysTablespace::read_lsn_and_check_flags(lsn_t* flushed_lsn) ut_a(it->order() == 0); - - buf_dblwr_init_or_load_pages(it->handle(), it->filepath()); + err = buf_dblwr_init_or_load_pages(it->handle(), it->filepath()); + if (err != DB_SUCCESS) { + return(err); + } /* Check the contents of the first page of the first datafile. */ diff --git a/storage/innobase/include/buf0dblwr.h b/storage/innobase/include/buf0dblwr.h index 1f8f23e..1962297 100644 --- a/storage/innobase/include/buf0dblwr.h +++ b/storage/innobase/include/buf0dblwr.h @@ -55,6 +55,7 @@ upgrading to an InnoDB version which supports multiple tablespaces, then this function performs the necessary update operations. If we are in a crash recovery, this function loads the pages from double write buffer into memory. @return DB_SUCCESS or error code */ +__attribute__((warn_unused_result)) dberr_t buf_dblwr_init_or_load_pages( os_file_t file,