05-28-2016, 08:25 AM
This is currently a limitation I haven't addressed yet. I'm actually not entirely sure how I want to solve it yet either. The problem is that I currently don't track how much data I've written into the file. So either I need to start tracking that and figure out when I've reached the end of the file and set some kind of flag that indicates that it should continue on to the next file, or I have to just watch for when the write to disk fails and then try to recover by rolling over the data into a new file. I think I'm probably going to have to do the former in order for things not to get messy.