diff options
| author | 2009-09-30 11:20:45 -0700 | |
|---|---|---|
| committer | 2009-09-30 14:15:43 -0700 | |
| commit | 852f8e4660302a4163bfdc4a9b1e8012296522b0 (patch) | |
| tree | 6c0e2ce6d979806de04dcbcbc679d15ce11c1f09 /libs/utils/BackupData.cpp | |
| parent | 285f242214d38352b844898edffc8eb336d0c19e (diff) | |
Only re-initialize backup state if @pm@ metadata is missing,
to defensively work around a still-mysterious bug where the
list of saved packages ends up being empty even though we still
have state pending. If we do re-initialize, then wipe all state
to make sure the right thing happens.
Don't keep open journal files -- close them after every update.
A bit less efficient, but possibly more reliable (again, this is
defensive programming here). Also change "rwd" to "rws" mode
for fully synchronous operation.
Diffstat (limited to 'libs/utils/BackupData.cpp')
0 files changed, 0 insertions, 0 deletions