IndexedDB: Remove O(n^2) algorithm from transaction coordinator
While looking at crbug.com/280741 I found that we were scanning over
all earlier transactions for each queued transaction to determine
if it was blocked/unblocked. This would impact that bug by reporting
a transaction as blocked on a running transaction, even if it was
queued behind another blocked transaction.
This CL just eliminates the O(n^2) behavior by building up a set
of locked stores as the queue is scanned.
R=alecflett@chromium.org,dgrogan@chromium.org
BUG=280741
Review URL: https://chromiumcodereview.appspot.com/
23889011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222412 0039d316-1c4b-4281-b951-d872f2087c98