Commit ba95e96
core.fsync: new option to harden the index
This commit introduces the new ability for the user to harden
the index. In the event of a system crash, the index must be
durable for the user to actually find a file that has been added
to the repo and then deleted from the working tree.
We use the presence of the COMMIT_LOCK flag and absence of the
alternate_index_output as a proxy for determining whether we're
updating the persistent index of the repo or some temporary
index. We don't sync these temporary indexes.
Signed-off-by: Neeraj Singh <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 844a8ad commit ba95e96
3 files changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
| 1007 | + | |
1007 | 1008 | | |
1008 | 1009 | | |
1009 | 1010 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1331 | 1331 | | |
1332 | 1332 | | |
1333 | 1333 | | |
| 1334 | + | |
1334 | 1335 | | |
1335 | 1336 | | |
1336 | 1337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2842 | 2842 | | |
2843 | 2843 | | |
2844 | 2844 | | |
2845 | | - | |
| 2845 | + | |
2846 | 2846 | | |
2847 | 2847 | | |
2848 | 2848 | | |
| |||
2856 | 2856 | | |
2857 | 2857 | | |
2858 | 2858 | | |
| 2859 | + | |
2859 | 2860 | | |
2860 | 2861 | | |
2861 | 2862 | | |
| |||
3089 | 3090 | | |
3090 | 3091 | | |
3091 | 3092 | | |
3092 | | - | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
3093 | 3100 | | |
3094 | 3101 | | |
3095 | 3102 | | |
| |||
3144 | 3151 | | |
3145 | 3152 | | |
3146 | 3153 | | |
3147 | | - | |
| 3154 | + | |
3148 | 3155 | | |
3149 | 3156 | | |
3150 | 3157 | | |
| |||
3238 | 3245 | | |
3239 | 3246 | | |
3240 | 3247 | | |
3241 | | - | |
| 3248 | + | |
3242 | 3249 | | |
3243 | 3250 | | |
3244 | 3251 | | |
| |||
3248 | 3255 | | |
3249 | 3256 | | |
3250 | 3257 | | |
3251 | | - | |
| 3258 | + | |
3252 | 3259 | | |
3253 | 3260 | | |
3254 | 3261 | | |
| |||
3357 | 3364 | | |
3358 | 3365 | | |
3359 | 3366 | | |
3360 | | - | |
| 3367 | + | |
3361 | 3368 | | |
3362 | 3369 | | |
3363 | 3370 | | |
| |||
0 commit comments