s4-vampire: cope with no invocationID when vampiring the schema
authorAndrew Tridgell <tridge@samba.org>
Fri, 11 Sep 2009 13:26:39 +0000 (23:26 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 11 Sep 2009 13:26:39 +0000 (23:26 +1000)
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index bb446333e27177d242cd51987353db1800e20a19..fbcde764ccde18e0deb6113248b2e8bf4acfa060 100644 (file)
@@ -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);