log all file size changes

This commit is contained in:
Evan Tschannen 2021-03-18 22:52:19 -07:00
parent 06039d6e30
commit 335b59eafe
1 changed files with 4 additions and 0 deletions

View File

@ -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)