Commit 62e4130
committed
ociindex: allow readonly access
If file lock can't be taken because of a permission or readonly
error then assume that the index is immutable and locks are not needed.
Writer side is unchanged as if lock would be skipped then the write
is assumed to fail anyway.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>1 parent 076d69e commit 62e4130
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
43 | 51 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
0 commit comments