Comment 3 for bug 812500

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 812500] Re: translations to branch script failing with InternalError: transaction is read-only

"
A minimal change would be to call branchChanged on a master-store
version of the branch. But that's not ideal: a stale last-mirrored
timestamp may just be a symptom of high load, in which case requesting a
re-scan does nothing but increase the load further. We'd want to check
whether the master version is out of date as well. But that gets to be
a lot of work for a script that just happened to notice the problem!
"

Scan requests are a depth-1 queue, so requesting one when the branch
is stale due to a backlog won't increase load - it will just coalesce
with the existing request.

-Rob