diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-01-19 11:24:31 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2011-01-28 18:49:17 -0500 |
commit | 359d54e741877f04b0773fb0955041eee7ec0054 (patch) | |
tree | 8a1c69754da14a502d809330e2f8f7831ff0c16b /ipalib/config.py | |
parent | fd1d0857b5b559425668f38d85a7d607d0f35767 (diff) | |
download | freeipa-359d54e741877f04b0773fb0955041eee7ec0054.tar.gz freeipa-359d54e741877f04b0773fb0955041eee7ec0054.tar.xz freeipa-359d54e741877f04b0773fb0955041eee7ec0054.zip |
Don't perform some API self-tests in production mode for performance reasons
The API does a fair number of self tests and locking to assure that the
registered commands are consistent and will work. This does not need
to be done on a production system and adds additional overhead causing
somewhere between a 30 and 50% decrease in performance.
Because makeapi is executed when a build is done ensure that it is
executed in developer mode to ensure that the framework is ok.
ticket 751
Diffstat (limited to 'ipalib/config.py')
-rw-r--r-- | ipalib/config.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/config.py b/ipalib/config.py index ec86d9e1..888785a2 100644 --- a/ipalib/config.py +++ b/ipalib/config.py @@ -467,6 +467,9 @@ class Env(object): else: self.in_tree = False + if self.in_tree and 'mode' not in self: + self.mode = 'developer' + # Set dot_ipa: if 'dot_ipa' not in self: self.dot_ipa = self._join('home', '.ipa') |