3.1.6 Timer Events

When the TableMaintenanceTimer timer expires, the StoreMaster agent MUST perform the following operations:

  • Deleted files are cleaned up in the FileTable table:

    When a file is deleted, the Flags_Deleted flag is set in the Flags field of the corresponding FileTable entry, as specified in section 3.1.4. Any FileTable entry with this flag set MUST be deleted.

  • Multiple entries representing a single chain are coalesced in the FileTable:

    • If multiple entries in the FileTable represent a single chain, they MUST be coalesced into a single FileTable entry. A chain of FileTable entries is a sequence of two or more consecutive entries that track a file through multiple moves, beginning with the file's original location in the first entry's PreviousFileLocation column, and ending in the file's most recent location in the last entry's NextFileLocation column.

    • The process of coalescing FileTable entries involves condensing a chain of FileTable entries into a single entry. The condensed single entry contains the PreviousFileLocation field that was originally specified in the first FileTable entry and the NextFileLocation field that was originally specified in the last FileTable entry.

    • Assume that FileTable contains two entries, and that the NextFileLocation field of the first entry matches the PreviousFileLocation field of the second entry. The second entry MUST be deleted from FileTable, and the first entry MUST be updated so that its NextFileLocation field has the value of the NextFileLocation field of the deleted entry.