neo4j/neo4j — pull request #2201 by chrisvest (2014-03-31 12:08:44+00:00)
Title: Fix memory leak in XaResourceManager.

The txOrderMap was initially only meant for and used by recovery. However, HA started
injecting transactions using the same recovery code as well. This meant that the
txOrderMap was steadily accumulating data, but never got cleared, because the clearing
only happened at the end of recovery.

This memory leak has been fixed by removing the txOrderMap completely, and instead let
the TransactionStatus objects know how to order themselves.