diff options
author | Davanum Srinivas <davanum@gmail.com> | 2015-03-31 18:17:22 -0400 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2015-04-06 14:48:36 +0000 |
commit | 4c8f38cd1d088c46be314b47f6774e721813c6d9 (patch) | |
tree | aed9674f92175ee49561ae618e4836d666c49f1f /MANIFEST.in | |
parent | a4185ef8a2bfd1cd87e797856d22fb37b5e8ba0f (diff) | |
download | oslo-policy-4c8f38cd1d088c46be314b47f6774e721813c6d9.tar.gz |
Avoid reloading policy files in policy.d for every call0.3.2
We added policy files in policy.d, currently, the code will
reload the policy in policy.d every enforce been called.
This patch caches the file mtime of the most newest file in
the directory (or the directory itself if it is empty) and uses
that to detect if we need to reload files in the policy.d
directory.
Change-Id: I3ab1ce1f2132ea8672bf0765ee4b30ad126d4559
Closes-Bug: 1437992
Co-Authored-By: Eli Qiao <liyong.qiao@intel.com>
Cherry-pick: Ia8c273c8566a4b472cb8807b1576ef1dee8ef054
Diffstat (limited to 'MANIFEST.in')
0 files changed, 0 insertions, 0 deletions