mirror of
https://github.com/schoebel/mars
synced 2025-01-26 01:03:35 +00:00
ea48664a14
Only a secondary is allowed to do this, because we assume that logfile replay has the property of "anytime consistency" only there. When a primary cannot recover after a crash due to a defective logfile, this is not true. The primary is simply lost in such a (rare) case. Observed 2 times during almost 8 millions of operating hours. In such a case, hardware is truly defective, and you have only the following options: 1) switchover to a secondary via "primary --force", OR 2) deconstruct the resource everywhere, run fsck or similar on whatever replica seems to be the best version, and reconstruct the resource from scratch, OR 3) restore your backup. |
||
---|---|---|
.. | ||
mars_light.c | ||
mars_proc.c | ||
mars_proc.h | ||
README | ||
strategy.h | ||
sy_generic.c | ||
sy_net.c |
This is ugly code from a first prototype trial. It will disappear as soon as the new strategy layer has been implemented. The new system will use an interpreter for automated pattern matching and triggering actions, in a much more generic fashion than hand-crafted here.