Whamcloud - gitweb
b=18649 set wait_recovery_complete() MAX value to max recovery time estimated
authorElena Gryaznova <grev@sun.com>
Tue, 27 Apr 2010 15:32:56 +0000 (19:32 +0400)
committerRobert Read <robert.read@oracle.com>
Tue, 27 Apr 2010 17:29:23 +0000 (10:29 -0700)
i=Mikhail.Pershin

lustre/tests/test-framework.sh

index 81a4b7b..ea708a2 100644 (file)
@@ -1137,10 +1137,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"