On a high traffic site, when its time to restore the platform, performed in acquia_spi_boot(), if many processes in the same second hit acquia_spi_boot(), the variable_set will be called multiple times in that same second, worsening the effects of called variable_set (which shouldn't be called during hook_boot anyway!)
A nice an easy way around this is to simply obtain a lock before performing the task. Drupal's lock API drops the lock at the end of the process so no lock needs to be released as acquia_spi_boot's tasks technically don't need to be performed again for quite some time.
Attached is a patch for the fix.
Comment | File | Size | Author |
---|---|---|---|
acquia_spi-lock-boot.patch | 1.34 KB | Josh Waihi | |
Comments
Comment #2
Stanislav Mixnovich CreditAttribution: Stanislav Mixnovich commentedComment #3
Stanislav Mixnovich CreditAttribution: Stanislav Mixnovich commented