summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-07-16 00:29:30 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-07-16 00:29:30 +0000
commit5f12b6d18339f6c6ac0b125fffa19ba43b6303b4 (patch)
tree8f3bf934a99119b435faedb69e006a99b83b1eae /src
parent2db2d49ee254ef9140174682565b314b4be73259 (diff)
downloadbcfg2-5f12b6d18339f6c6ac0b125fffa19ba43b6303b4.tar.gz
bcfg2-5f12b6d18339f6c6ac0b125fffa19ba43b6303b4.tar.bz2
bcfg2-5f12b6d18339f6c6ac0b125fffa19ba43b6303b4.zip
SSHbase: fix skn caching (Fixes startup behavior (-40s on my repo))
Our cache check actually triggered skn build early, causing extremely poor startup performance in general. (and extremely bad performance on repositories with large quantities of keys) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5332 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/SSHbase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/SSHbase.py b/src/lib/Server/Plugins/SSHbase.py
index 9f2f9a789..542c06f5f 100644
--- a/src/lib/Server/Plugins/SSHbase.py
+++ b/src/lib/Server/Plugins/SSHbase.py
@@ -112,8 +112,8 @@ class SSHbase(Bcfg2.Server.Plugin.Plugin,
self.skn = False
if event and event.filename.endswith('.static'):
self.skn = False
- if not self.skn:
- if (len(self.entries.keys())) > (0.95 * len(os.listdir(self.data))):
+ if not self.__skn:
+ if (len(self.entries.keys())) >= (len(os.listdir(self.data))-1):
_ = self.skn
def HandlesEntry(self, entry, _):