Primarily, this fixes a bug in modify wherein we open resizeFile as read-only, but then tread it as read-write (e.g., calling Truncate, and then using whisper.Create2 on it). This results in the following panic:
In the process, I also modify the error handling here to use log.Fatal instead of panic, but I'm happy to revert that if we have a strong preference for panic.
Hi!
Primarily, this fixes a bug in
modify
wherein we openresizeFile
as read-only, but then tread it as read-write (e.g., callingTruncate
, and then usingwhisper.Create2
on it). This results in the following panic:In the process, I also modify the error handling here to use
log.Fatal
instead ofpanic
, but I'm happy to revert that if we have a strong preference forpanic
.