Whamcloud - gitweb
b=24128 mgs_write_log_ost() should not update client's log
authorVitaly Fertman <vitaly.fertman@oracle.com>
Tue, 21 Dec 2010 13:04:22 +0000 (16:04 +0300)
committerVitaly Fertman <vitaly.fertman@oracle.com>
Wed, 22 Dec 2010 01:16:34 +0000 (04:16 +0300)
o=Lai Siyao
i=adilger

when an OST is set to an existed index, don't update client logs.
otherwise client will have duplicate OSC logs to the same OST.

lustre/mgs/mgs_llog.c

index 45c098e..643b775 100644 (file)
@@ -1846,7 +1846,7 @@ static int mgs_write_log_ost(struct obd_device *obd, struct fs_db *fsdb,
                                        fsdb->fsdb_clilmv);
         }
         mgs_write_log_osc_to_lov(obd, fsdb, mti, logname, "",
-                                 fsdb->fsdb_clilov, LUSTRE_SP_CLI, 0);
+                                 fsdb->fsdb_clilov, LUSTRE_SP_CLI, flags);
         name_destroy(&logname);
         RETURN(rc);
 }