Skip to content

sincedb write fails under windows with "permission" error #36

Description

@jweite

tail.rb _sincedbwrite renames the newly written tmp sincedb over the previously existing one. This is failing with a "permission error" under Windows (7). I added code to (conditionally under windows only) delete the pre-existing sincedb file before the rename and the sincedb writes succeed. If the delete fails I log but leave both in place - the tmp sincedb file should be overwritten next time around.

-Joe Weitekamp

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions