Whamcloud - gitweb
LU-3750 mdt: fix typo in mdt_txn_stop_cb() 87/7787/4
authorMikhail Pershin <mike.pershin@intel.com>
Fri, 27 Sep 2013 15:13:30 +0000 (19:13 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 2 Oct 2013 16:54:27 +0000 (16:54 +0000)
Wrong check was added to mdt_txn_stop_cb() to identify object
for version update. Version is not updated for all local objects
due to that typo and leads to replay-vbr.sh failures

Test-Parameters: testgroup=review,failover
Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: I9c41f7208d7aa8cf307858b9c6f51ae73c1081e4
Reviewed-on: http://review.whamcloud.com/7787
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: wangdi <di.wang@intel.com>
lustre/mdt/mdt_recovery.c

index 3f5babd..c89e418 100644 (file)
@@ -404,7 +404,7 @@ static int mdt_txn_stop_cb(const struct lu_env *env,
        LASSERT(mti);
 
        if (mti->mti_mos != NULL &&
-           mdt_object_remote(mti->mti_mos)) {
+           !mdt_object_remote(mti->mti_mos)) {
                obj = mdt_obj2dt(mti->mti_mos);
        }