Skip to content
  • Joey Hess's avatar
    More robust handling of ErrorBusy when writing to sqlite databases · 3149a1e2
    Joey Hess authored
    While ErrorBusy and other exceptions were caught and the write retried for
    up to 10 seconds, it was still possible for git-annex to eventually
    give up and error out without writing to the database. Now it will retry
    as long as necessary.
    
    This does mean that, if one git-annex process is suspended just as sqlite
    has locked the database for writing, another git-annex that tries to write
    it it might get stuck retrying forever. But, that could already happen when
    opening the sqlite database, which retries forever on ErrorBusy. This is an
    area where git-annex is known to not behave well, there's a todo about the
    general case of it.
    
    Sponsored-by: Dartmouth College's Datalad project
    3149a1e2
To find the state of this project's repository at the time of any of these versions, check out the tags.