|
|
@ -66,7 +66,7 @@ size_t FlatFileSeq::Allocate(const FlatFilePos& pos, size_t add_size, bool& out_
|
|
|
|
if (CheckDiskSpace(m_dir, inc_size)) {
|
|
|
|
if (CheckDiskSpace(m_dir, inc_size)) {
|
|
|
|
FILE *file = Open(pos);
|
|
|
|
FILE *file = Open(pos);
|
|
|
|
if (file) {
|
|
|
|
if (file) {
|
|
|
|
LogPrintf("Pre-allocating up to position 0x%x in %s%05u.dat\n", new_size, m_prefix, pos.nFile);
|
|
|
|
LogPrint(BCLog::VALIDATION, "Pre-allocating up to position 0x%x in %s%05u.dat\n", new_size, m_prefix, pos.nFile);
|
|
|
|
AllocateFileRange(file, pos.nPos, inc_size);
|
|
|
|
AllocateFileRange(file, pos.nPos, inc_size);
|
|
|
|
fclose(file);
|
|
|
|
fclose(file);
|
|
|
|
return inc_size;
|
|
|
|
return inc_size;
|
|
|
|