summaryrefslogtreecommitdiff
path: root/bugs/chunks-dir-init-has-no-lock.mdwn
blob: 36402d6a32a653942f361e45ba93fc76bd3e6f04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[[!tag obnam-1.0-blocker]]

When Obnam initializes the `chunks` directory, for encryption, it is
done without locking. That's a race condition: two clients started
at the same time against an empty directory may result in both of
them creating the same files.

Normal use of the `chunks` directory does not need locking: clients
are free to create new chunks files there, as long as they take care
to not overwrite existing files.

--liw

[[done]] in bzr