Whamcloud - gitweb
LU-5130 lod: Do not merge attr for striped directory 41/10841/6
authorWang Di <di.wang@intel.com>
Thu, 26 Jun 2014 06:49:27 +0000 (23:49 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 8 Jul 2014 15:29:33 +0000 (15:29 +0000)
commit94c6962ad22ff819fbf4a4bb7f412ac13cfeb4ca
tree7187cbf8bc0fde02bbc47a07c7b47b86c4a026d7
parentd3e9d454964e44e9cb6e457923fa5a0cdf021094
LU-5130 lod: Do not merge attr for striped directory

Does not need to merge attributes in lod_attr_get(),
because client will merge attributes itself for striped
directory (see lmv_merge_attr()), and also there are no
logic in MDD will reply on directory nlink/size/time.

Besides lod_attr_get is in the path of object initialization,
mdd_object_start()->mdd_la_get()->lod_attr_get(), if it tries
to get attribute from other MDTs, and if other MDTs are not
ready yet, it will cause unnecessary failures for object
initialization.

Change-Id: I56395a40fcd82142f99228a0776b5b7338c633ac
Signed-off-by: Wang Di <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/10841
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lod_object.c