The $_SESSION['not_slavesafe'] hacks on d.o are broken. See #381704: sporadic node_load() failures causing grief for the d.o packaging script for an example. The patch was never properly ported to D6 core, and it's a hack anyway, since it assumes the replication delay is equivalent to a single page load. David wants to just backport #314358: Add option to ignore slave server for next requests to d.o D6 core. This involves:
A) Backporting it into core
B) Patching drupalorg.module to call it at the right times
C) Patching the packaging script to set it before node_load()
David's working on (A), I'm doing (B) and (C).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 389972-2.drupalorg.patch | 1019 bytes | dww |
| #1 | 389972-1.drupalorg.patch | 771 bytes | dww |
| #1 | 389972-1.project.patch | 1.48 KB | dww |
Comments
Comment #1
dwwPatches for drupalorg.module and package-release-nodes.php
Comment #2
dwwActually, based on David's backport (http://vcs.fourkitchens.com/pressflow/6-patches/database-replication/rev...) we don't need any of this code in drupalorg.module at all.
Comment #3
dwwOk, David merged his changes into SVN, I committed the above to DRUPAL-6--1 and HEAD of drupalorg, and to HEAD of project. We deployed on d6.d.o, and everything seems fine. So, we deployed this for real on d.o. Let's hope this solves it once and for all.