From f26564a5505401f61c1aa22f121a77e629810fc9 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 11 Jun 2012 21:03:03 -0400 Subject: [PATCH] new fortune, pushed file expiration date further out for recursive copier. that expiration is for synch-based transfers, and maybe that's a sign we need to move it out of the lower level file copying support. --- database/fortunes.dat | 12 ++++++++++++ octopi/library/tentacles/recursive_file_copy.cpp | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/database/fortunes.dat b/database/fortunes.dat index d2b87fb6..385f11e5 100644 --- a/database/fortunes.dat +++ b/database/fortunes.dat @@ -37929,3 +37929,15 @@ what is an inference? someone says, "my hand stinks because my butt stinks." an inference you could draw: that hand has probably been too close to that butt. +~ +What Do We Mean by Bodhisattva? + + Bodhi means enlightenment, the state devoid of all defects and endowed with +all good qualities. Sattva refers to someone who has courage and confidence +and who strives to attain enlightenment for the sake of all beings. Those who +have this spontaneous, sincere wish to attain enlightenment for the ultimate +benefit of all beings are called bodhisattvas. Through wisdom, they direct +their minds to enlightenment, and through their compassion, they have concern +for beings. This wish for perfect enlightenment for the sake of others is +what we call bodhichitta, and it is the starting point on the path. + diff --git a/octopi/library/tentacles/recursive_file_copy.cpp b/octopi/library/tentacles/recursive_file_copy.cpp index 40e4f0af..8464ed4e 100644 --- a/octopi/library/tentacles/recursive_file_copy.cpp +++ b/octopi/library/tentacles/recursive_file_copy.cpp @@ -49,6 +49,11 @@ namespace octopi { const int MAX_CHUNK_RFC_COPY_HIER = 1 * MEGABYTE; // maximum size for each transfer chunk. +const int EXPECTED_MAXIMUM_TRANSFER_TIME = 10 * HOUR_ms; + // how long do we allow the scanned file lists to stay relevant. + // we allow it a long time, since this is a copy and not an active + // synchronization. + recursive_file_copy::~recursive_file_copy() {} const char *recursive_file_copy::outcome_name(const outcome &to_name) @@ -85,7 +90,7 @@ outcome recursive_file_copy::copy_hierarchy(int transfer_mode, ring_leader.add_tentacle(tran); outcome add_ret = tran->add_correspondence("snootums", source_dir, - 10 * MINUTE_ms); + EXPECTED_MAXIMUM_TRANSFER_TIME); if (add_ret != tentacle::OKAY) RETURN_ERROR_RFC("failed to add the correspondence", NOT_FOUND); -- 2.34.1