• Jeremy Hylton's avatar
    Refactor the commit() method. · 56ab4405
    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.
    56ab4405
Transaction.py 13.6 KB