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

mtflush_service_io - workitem status is always SUCCESS even if pool flush fails

    XMLWordPrintable

Details

    Description

      /storage/innobase/buf/buf0mtflu.cc - mtflush_service_io() function
      workitem status is always SUCCESS even if pool flush fails, probably “else” is missing

      	case MT_WRK_WRITE:
      		ut_a(work_item->wi_status == WRK_ITEM_SET);
      		work_item->wi_status = WRK_ITEM_START;
      		/* Process work item */
      		if (0 == (n_flushed = buf_mtflu_flush_pool_instance(work_item))) {
      			work_item->wi_status = WRK_ITEM_FAILED;  <--------
      		}
      		work_item->wi_status = WRK_ITEM_SUCCESS;     <--------
      		ib_wqueue_add(mtflush_io->wr_cq, work_item, work_item->rheap);
      		break;
      

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              yury.chaikou Yury Chaikou
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.