pushTransaction is doing $this->transactionLayers[$name] = $name; and this function checks for if (isset($this->transactionLayers[$name])) yes rollback uses array_search. Slow, confusing (what's the array structure, again...?), ugly. Edit: no test needed as no functionality has changed and transactions have tests already.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Damien Tournoud’s picture

Status: Needs review » Reviewed & tested by the community

There is no small cleanup.

chx’s picture

You mean there is no too small cleanup? I agree. Let's find a few whitespaces to delete :D

Status: Reviewed & tested by the community » Needs work

The last submitted patch, transactionLayers_stores_keys.patch, failed testing.

Albert Volkman’s picture

Status: Needs work » Needs review
FileSize
647 bytes

Looks good in core/lib/Drupal/Core/Database/Connection.php, but not in core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php. This fixes that :)

Status: Needs review » Needs work

The last submitted patch, transactionLayers_stores_keys-1186582-4.patch, failed testing.

Albert Volkman’s picture

Odd, that test didn't fail locally. Do I have to have my local site set up with sqlite to properly test?

chx’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, transactionLayers_stores_keys-1186582-4.patch, failed testing.

jhodgdon’s picture

Albert Volkman’s picture

Status: Needs work » Needs review
Albert Volkman’s picture

Albert Volkman’s picture

Not completely up-to-snuff with OOP inheritance, so would this simply need to be removed from the sqlite implementation altogether?

jhedstrom’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Patch still applies and makes sense.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 0dfd0ca and pushed to 8.0.x. Thanks!

  • alexpott committed 0dfd0ca on 8.0.x
    Issue #1186582 by Albert Volkman, chx: Fixed rollback and and...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.