CommitLog.__init__(): Use an unlink flag to record what the behavior
should be on close. By default, we unlink the file unless we were passed a file-like object, in which case we don't unlink by default (because the client owns the file). close(): Only close the file if the file isn't already closed. Only unlink if the default unlink flag is true, or we're explicitly told to unlink via the argument. This should fix the logfile turd problem.
Showing
Please register or sign in to comment