Whamcloud - gitweb
b=21681 suppress bogus transno error
authorroot <root@zhanghc.(none)>
Fri, 1 Jan 2010 05:50:58 +0000 (13:50 +0800)
committerAndrew Perepechko <andrew.perepechko@sun.com>
Sat, 2 Jan 2010 15:29:57 +0000 (18:29 +0300)
suppress the "server went back in time" error message
which is always printed even in the common case after
a client eviction

i=hongchao.zhang@sun.com
i=andrew.perepechko@sun.com

lustre/ptlrpc/import.c

index 2496eb4..12a8dc4 100644 (file)
@@ -938,7 +938,8 @@ static int ptlrpc_connect_interpret(struct ptlrpc_request *request,
                        "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