commit (Vapor::Transaction)

    # File vapor/transaction.rb, line 55
        def commit
          raise StaleTransactionError unless  @active

          begin
            @log.update_commit_time
            @log.make_persistent
            @log.cleanup_modofied_objects()
            @datastore.transaction_log = @log.oid
            @persistence_manager.flush_all
            @datastore.commit_transaction
            @datastore.transaction_log = 0
          rescue Exception => e
            self.rollback
            raise e
          end

          @active = false
        end