Changeset 1763


Ignore:
Timestamp:
Mar 22, 2014, 7:01:42 PM (12 years ago)
Author:
Gregg Young
Message:

Reverted some code from the RemoveCnrItems CS[1759] changes adding a previously missing break and comments explaining the code structure. Ticket [514}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1759 r1763  
    103103  02 Mar 14 GKY Speed up intial drive scans Ticket 528
    104104  19 Mar 14 SHL RemoveCnrItems: clean up odd code
     105  22 Mar 14 GKY Reverted some code from the RemoveCnrItems changes adding a previously
     106                missing break and comments explaining the code structure.
    105107
    106108***********************************************************************/
     
    20192021        if (!pci)
    20202022          break;
    2021         if (remaining && --remaining == 0)
    2022           break;
    2023         IdleIfNeeded(&itdSleep, 30);
     2023        if (remaining && --remaining == 0) '
     2024          break;
     2025        // 22 Mar 14 GKY This second loop is to avoid calling or checking if
     2026        // IdleIfNeeded has been called on loops after it has set the process to idle
     2027        if (!IdleIfNeeded(&itdSleep, 30)) {
     2028          while (pci) {
     2029            FreeCnrItemData(pci);
     2030            pci = (PCNRITEM)pci->rc.preccNextRecord;
     2031            if (remaining && --remaining == 0)
     2032              break;
     2033          } // while
     2034          break;
     2035        }
    20242036      } // while
    20252037      priority_normal();
Note: See TracChangeset for help on using the changeset viewer.