• Jeremy Hylton's avatar
    Refactor the commit() method. · ba85aaae
    Jeremy Hylton authored
    Break up the logic into a bunch of helper methods:
     _commit_objects()
     _commit_subtrans()
     _finish_one()
     _finish_rest()
    and possibly
     _commit_error()
    
    As a result of the changes, the high-level logic of a commit fits into
    28 lines inside a try/finally.  There are lots of details hidden in
    the methods, but the names capture the high-level behavior of the
    helpers.
    ba85aaae
Transaction.py 13.6 KB