X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fllog_osd.c;h=92d71869e5a914d7defacd485fe20ac641a1fb8f;hp=63abf6620b706174b83c58be17ab5f91cf3b701a;hb=82c6e42d6137f39a1f2394b7bc6e8d600eb36181;hpb=c5165557f561c13d83b355f4118d6c4564b5d036 diff --git a/lustre/obdclass/llog_osd.c b/lustre/obdclass/llog_osd.c index 63abf66..92d7186 100644 --- a/lustre/obdclass/llog_osd.c +++ b/lustre/obdclass/llog_osd.c @@ -412,6 +412,9 @@ static int llog_osd_write_rec(const struct lu_env *env, LASSERT(llh->llh_size == reclen); } + /* return error if osp object is stale */ + if (idx != LLOG_HEADER_IDX && dt_object_stale(o)) + RETURN(-ESTALE); rc = dt_attr_get(env, o, &lgi->lgi_attr); if (rc) RETURN(rc);