← Back to team overview

launchpad-dev team mailing list archive

Why most event subscribers use the block_implicit_flushes() decorator?

 

Hi,

While discussing
https://code.launchpad.net/~linaro-infrastructure/launchpad/notify-workitems-changes/+merge/98231
we found that the block_implicit_flushes() decorator in an event
subscriber was causing us some problems so Robert suggested I find out
why it's there. The revision log of when it was introduced [1] doesn't
say why it is needed, so I'm hoping somebody here will know...

[1]
salgado@delgadito:~/launchpad/lp-branches/devel/lib/lp$ bzr log -r
revid:james.henstridge@xxxxxxxxxxxxx-20080407101536-oxuijfpf7aroukea
  5821.2.27 James Henstridge	2008-04-07
            * Add block_implicit_flushes decorator that blocks flushes
performed
              implicitly by Storm methods like get(), find() and execute().
            * Block flushes in various event handlers and in the
security policy.
            * A few more changes to fix particular test failures.


-- 
Guilherme Salgado <https://launchpad.net/~salgado>

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups