Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-36253

Redundant check in wf_incremental_process()

Details

    Description

      As a part of commit 1c55b845e0fe337e647ba230288ed13e966cb7c7, mariabackup
      does have redundant check to find out whether the TRX_SYS page has been modified.
      Remove the redundant check.

                      /* Check whether TRX_SYS page has been changed */
                      if (mach_read_from_4(page + FIL_PAGE_SPACE_ID)
                                      == TRX_SYS_SPACE
                          && mach_read_from_4(page + FIL_PAGE_OFFSET)
                                      == TRX_SYS_PAGE_NO) {
                              msg(cursor->thread_n,
                                  "--incremental backup is impossible if "
                                  "the server had been restarted with "
                                  "different innodb_undo_tablespaces.");
                              return false;
                      }
       
                      /* Check whether TRX_SYS page has been changed */
                      if (mach_read_from_4(page + FIL_PAGE_SPACE_ID)
                                      == TRX_SYS_SPACE
                          && mach_read_from_4(page + FIL_PAGE_OFFSET)
                                      == TRX_SYS_PAGE_NO) {
                              msg(cursor->thread_n,
                                  "--incremental backup is impossible if "
                                  "the server had been restarted with "
                                  "different innodb_undo_tablespaces.");
                              return false;
                      }
      

      Attachments

        Issue Links

          Activity

            There are no comments yet on this issue.

            People

              thiru Thirunarayanan Balathandayuthapani
              thiru Thirunarayanan Balathandayuthapani
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.