From 82e6ef71c2fad1d448a34e9458f5d79c6b6e69c8 Mon Sep 17 00:00:00 2001 From: Will Benton <willb@redhat.com> Date: Thu, 21 Jun 2012 22:55:16 -0500 Subject: [PATCH 04/11] Spurious configuration removal off by default. The Wallaby agent no longer removes possibly-spurious versioned configurations on startup. (This is a cleanup measure from a bug in a very old version of Wallaby; it is unlikely necessary any more.) To enable this behavior, set WALLABY_REMOVE_SPURIOUS_CONFIGS to yes or true in the environment in which wallaby-agent runs. --- bin/wallaby-agent | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/bin/wallaby-agent b/bin/wallaby-agent index 5bef195..f596f8b 100755 --- a/bin/wallaby-agent +++ b/bin/wallaby-agent @@ -165,7 +165,9 @@ begin $wallaby_log = Mrg::Grid::Config::Store.log begin - Mrg::Grid::Config::Store.find_by_id(0).storeinit("remove-spurious"=>"yes") + options = {} + options["remove-spurious"] = "yes" if (ENV["WALLABY_REMOVE_SPURIOUS_CONFIGS"] && ENV["WALLABY_REMOVE_SPURIOUS_CONFIGS"] =~ /^(true|yes)/i) + Mrg::Grid::Config::Store.find_by_id(0).storeinit(options) [:default, :snapshot].each do |which| Rhubarb::Persistence::dbs[which].execute("vacuum") end -- 1.7.7.6