From 9da49338043dedbf17c99ceed24c2934514d0157 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 11 Sep 2009 23:26:39 +1000 Subject: s4-vampire: cope with no invocationID when vampiring the schema --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index bb446333e2..fbcde764cc 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -547,9 +547,10 @@ static int replmd_update_rpmd(struct ldb_context *ldb, struct ldb_message *msg, our_invocation_id = samdb_ntds_invocation_id(ldb); if (!our_invocation_id) { - ldb_debug_set(ldb, LDB_DEBUG_ERROR, - __location__ ": replmd_update_rpmd: unable to find invocationId\n"); - return LDB_ERR_OPERATIONS_ERROR; + /* this happens during an initial vampire while + updating the schema */ + DEBUG(5,("No invocationID - skipping replPropertyMetaData update\n")); + return LDB_SUCCESS; } unix_to_nt_time(&now, t); -- cgit