diff options
| author | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-02-23 20:33:16 +0100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-03-04 19:31:08 +1100 |
| commit | c55ac3f2c2335de0beacd2cb3396b550c8f1402f (patch) | |
| tree | 6d16e6dc724eaeca0cd34f372be862e94cdbef85 /ext/dbfix.sql | |
| parent | a790ee3b487a7eac6668e45747e338d44d75da9e (diff) | |
| download | puppet-c55ac3f2c2335de0beacd2cb3396b550c8f1402f.tar.gz puppet-c55ac3f2c2335de0beacd2cb3396b550c8f1402f.tar.xz puppet-c55ac3f2c2335de0beacd2cb3396b550c8f1402f.zip | |
Fix #2010 - add protection code for some storeconfig corruption
This patch adds a more robust and self-healing storedconfig in case
of logically corrupted database as the one in #2010 (where multiple
resources of same references are present in the database for the
same host).
The problem is that the resources are stored in a hash with the resource
ref as the key, so we collapse resource of different id but same
reference. The patch fixed this by using a hash by resource id, and
maintaining a list of old extraneous resource in the db that are removved
after the storeconfig pass.
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'ext/dbfix.sql')
0 files changed, 0 insertions, 0 deletions
