Whamcloud - gitweb
b=21681 Quiet bogus previously committed transno error
authorMikhail Pershin <tappro@sun.com>
Tue, 18 May 2010 05:43:29 +0000 (09:43 +0400)
committerRobert Read <robert.read@oracle.com>
Wed, 19 May 2010 17:46:50 +0000 (10:46 -0700)
i=zhang,panda

lustre/ptlrpc/import.c

index f04e56f..e50a11d 100644 (file)
@@ -944,7 +944,8 @@ static int ptlrpc_connect_interpret(const struct lu_env *env,
                        "after reconnect. We should LBUG right here.\n");
         }
 
                        "after reconnect. We should LBUG right here.\n");
         }
 
-        if (lustre_msg_get_last_committed(request->rq_repmsg) <
+        if (lustre_msg_get_last_committed(request->rq_repmsg) > 0 &&
+            lustre_msg_get_last_committed(request->rq_repmsg) <
             aa->pcaa_peer_committed) {
                 CERROR("%s went back in time (transno "LPD64
                        " was previously committed, server now claims "LPD64
             aa->pcaa_peer_committed) {
                 CERROR("%s went back in time (transno "LPD64
                        " was previously committed, server now claims "LPD64