Skip to content

Comments

Removes logfile deletion in the absence of an index file.#5

Open
king5327 wants to merge 1 commit intof-list:masterfrom
king5327:patch-1
Open

Removes logfile deletion in the absence of an index file.#5
king5327 wants to merge 1 commit intof-list:masterfrom
king5327:patch-1

Conversation

@king5327
Copy link

To fully regenerate an index file, two things need to happen:

  • The logs need to exist and be complete.
  • The index's header needs to be legible.

In the absence of an existing index file, the relevant log file should not be deleted and the log tool should skip that file for now. If the user is specifically concerned about that channel, chances are they'll access it (which will generate a blank index that can be used in the next repair attempt).

The log file is valuable. Deleting it because an easily-constructed companion is missing is a poor sequence of events, especially given that most normal f-chat interactions don't depend on the index. In the absence of an index file, chatting and saving the logs still functions completely fine, as does loading the last 20 posts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant