Whamcloud - gitweb
b=18649 set wait_recovery_complete() MAX value to max recovery time estimated
authorElena Gryaznova <grev@sun.com>
Fri, 26 Feb 2010 19:12:28 +0000 (22:12 +0300)
committerJohann Lombardi <johann@sun.com>
Fri, 26 Feb 2010 21:20:20 +0000 (22:20 +0100)
i=Mikhail.Pershin

lustre/tests/test-framework.sh

index 93a175b..5def868 100644 (file)
@@ -965,10 +965,7 @@ wait_recovery_complete () {
     local facet=$1
 
     # Use default policy if $2 is not passed by caller.
-    #define OBD_RECOVERY_TIMEOUT (obd_timeout * 5 / 2)
-    # as we are in process of changing obd_timeout in different ways
-    # let's set MAX longer than that
-    local MAX=${2:-$(( TIMEOUT * 4 ))}
+    local MAX=${2:-$(max_recovery_time)}
 
     local var_svc=${facet}_svc
     local procfile="*.${!var_svc}.recovery_status"