log all file size changes
This commit is contained in:
parent
06039d6e30
commit
335b59eafe
|
@ -687,9 +687,13 @@ private:
|
|||
throw io_error();
|
||||
}
|
||||
|
||||
TraceEvent("SimpleFileTruncate1").detail("Size", size).detail("Filename", self->filename);
|
||||
|
||||
if (self->delayOnWrite)
|
||||
wait(waitUntilDiskReady(self->diskParameters, 0));
|
||||
|
||||
TraceEvent("SimpleFileTruncate2").detail("Size", size).detail("Filename", self->filename);
|
||||
|
||||
if (_chsize(self->h, (long)size) == -1) {
|
||||
TraceEvent(SevWarn, "SimpleFileIOError")
|
||||
.detail("Location", 6)
|
||||
|
|
Loading…
Reference in New Issue