Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-14731

mdd_changelog_llog_init() fails to clear orphans changelog entries when no users are registered

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      In mdd_changelog_llog_init() the logic around getting the minimum user index is broken when there are no users registered. When no users are registered the computed user orphan index is always 0 and the if (unlikely(changelog_orphan.index < user_orphan.index)) branch is never entered.

      0 is a poor sentinel for the minimum. It should use the maximum value representable in the type.

      Attachments

        Activity

          People

            jhammond John Hammond
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: