Whamcloud - gitweb
- declare modification of catalog itself when we're about to add another plain llog
authoralex <alex>
Tue, 20 Oct 2009 11:30:43 +0000 (11:30 +0000)
committeralex <alex>
Tue, 20 Oct 2009 11:30:43 +0000 (11:30 +0000)
lustre/obdclass/llog_cat.c

index 8f088de..e5a8098 100644 (file)
@@ -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 */