diff options
author | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-02-24 18:48:52 +0100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-03-20 21:44:00 +1100 |
commit | 33d3624c91b236e237fe194d9df3d9fa324111c3 (patch) | |
tree | 7381228d9cc28e3223aebf7bbd095fc99c38a8c1 /test | |
parent | 77ade43dec5e6fc5afac7abe4b331a3bc7887e42 (diff) | |
download | puppet-33d3624c91b236e237fe194d9df3d9fa324111c3.tar.gz puppet-33d3624c91b236e237fe194d9df3d9fa324111c3.tar.xz puppet-33d3624c91b236e237fe194d9df3d9fa324111c3.zip |
Fix #1469 - Add an option to recurse only on remote side
When using recurse and a source, if the client side has many files
it can take a lot of CPU/memory to checksum the whole client
hierarchy. The idea is that it is not necessary to recurse on the
client side if all we want is to manage the files that are sourced
from the server.
This changeset adds the "remote" recurse value which prevents recursing
on the client side when a source is present. Since it also is necessary
to limit the remote side recursion a new File{} parameter has been
added called "recurselimit".
Moreover, the Filetset API is changing to allow the new recurselimit
parameter, and passing the recursion depth limit in the recurse parameter
as an integer is now deprecated and not supported anymore.
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/ral/type/file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ral/type/file.rb b/test/ral/type/file.rb index 08fdab821..1e7f2862d 100755 --- a/test/ral/type/file.rb +++ b/test/ral/type/file.rb @@ -392,7 +392,7 @@ class TestFile < Test::Unit::TestCase # Make sure we default to false assert(! file.recurse?, "Recurse defaulted to true") - [true, "true", 10, "inf"].each do |value| + [true, "true", 10, "inf", "remote"].each do |value| file[:recurse] = value assert(file.recurse?, "%s did not cause recursion" % value) end |