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