summaryrefslogtreecommitdiff
path: root/doc/bugs/git_uninit_on_OS_X_causes_SqlLite3_error/comment_1_be3aaa58fd3adfa5eeb893c205aa871c._comment
blob: fed1699ac4b219b28ed0c7363f73a96be9fbb409 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2016-07-12T17:48:50Z"
 content="""
Not OSX specific; reproduced on Linux.

Instrumentation shows that removeInodeCaches is being called, when it
unannexes the annexed file. This is why a file has to have been added to
the repo to get the crash.

It's actually not necessary for removeInodeCaches to be called in a v5
repo, only in v6. If the code checked for v6 mode before writing to the
database, such problems would be avoided except for in v6 mode.

But, the actual fix is to make uninit close this and all other sqlite
db's before deleting the .git/annex directory.
"""]]