1. Unused local variable space_arch_log_no in fil_open_single_table_tablespace();
2. I would use "#define IB_ARCHIVED_LOGS_PREFIX_LEN (sizeof(IB_ARCHIVED_LOGS_PREFIX) - 1)" instead of using the number;
3. I don't think it's a good idea to abort the server if the file name does not fit into the buffer in log_archived_file_name_gen(). We could use strncpy() and snprintf() instead of strcpy() and sprintf() and return some value that shows if operation is completed successfully. If it does not some warning should be emitted.
It's just partial review:
1. Unused local variable space_arch_log_no in fil_open_ single_ table_tablespac e(); LOGS_PREFIX_ LEN (sizeof( IB_ARCHIVED_ LOGS_PREFIX) - 1)" instead of using the number; file_name_ gen(). We could use strncpy() and snprintf() instead of strcpy() and sprintf() and return some value that shows if operation is completed successfully. If it does not some warning should be emitted.
2. I would use "#define IB_ARCHIVED_
3. I don't think it's a good idea to abort the server if the file name does not fit into the buffer in log_archived_