|
|
@ -1538,12 +1538,16 @@ void static FlushBlockFile() |
|
|
|
CDiskBlockPos posOld(nLastBlockFile, 0); |
|
|
|
CDiskBlockPos posOld(nLastBlockFile, 0); |
|
|
|
|
|
|
|
|
|
|
|
FILE *fileOld = OpenBlockFile(posOld); |
|
|
|
FILE *fileOld = OpenBlockFile(posOld); |
|
|
|
|
|
|
|
if (fileOld) { |
|
|
|
FileCommit(fileOld); |
|
|
|
FileCommit(fileOld); |
|
|
|
fclose(fileOld); |
|
|
|
fclose(fileOld); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fileOld = OpenUndoFile(posOld); |
|
|
|
fileOld = OpenUndoFile(posOld); |
|
|
|
|
|
|
|
if (fileOld) { |
|
|
|
FileCommit(fileOld); |
|
|
|
FileCommit(fileOld); |
|
|
|
fclose(fileOld); |
|
|
|
fclose(fileOld); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool FindUndoPos(int nFile, CDiskBlockPos &pos, unsigned int nAddSize); |
|
|
|
bool FindUndoPos(int nFile, CDiskBlockPos &pos, unsigned int nAddSize); |
|
|
|