• Barry Warsaw's avatar
    CommitLog.__init__(): Use an unlink flag to record what the behavior · 34b88faf
    Barry Warsaw authored
    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.
    34b88faf
CommitLog.py 14.9 KB