From: alex Date: Tue, 20 Oct 2009 11:30:43 +0000 (+0000) Subject: - declare modification of catalog itself when we're about to add another plain llog X-Git-Tag: GIT_EPOCH_B_HD_KDMU~2^4~16 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=dbecda5e35088ac9baeb86a424c308b1cc02346c;p=fs%2Flustre-release.git - declare modification of catalog itself when we're about to add another plain llog --- diff --git a/lustre/obdclass/llog_cat.c b/lustre/obdclass/llog_cat.c index 8f088de..e5a8098 100644 --- a/lustre/obdclass/llog_cat.c +++ b/lustre/obdclass/llog_cat.c @@ -392,11 +392,14 @@ int llog_cat_declare_add_rec(struct llog_handle *cathandle, if (!llog_exist_2(cathandle->u.chd.chd_current_log)) { rc = llog_declare_create_2(cathandle->u.chd.chd_current_log, th); + llog_declare_write_rec_2(cathandle, NULL, -1, th); } else { struct llog_handle *next; next = cathandle->u.chd.chd_next_log; - if (next && !llog_exist_2(next)) + if (next && !llog_exist_2(next)) { rc = llog_declare_create_2(next, th); + llog_declare_write_rec_2(cathandle, NULL, -1, th); + } } /* declare records in the llogs */