don't always reload source4/rpc_server/drsuapi/getncchanges.c
authorStefan Metzmacher <metze@samba.org>
Thu, 25 Jul 2013 20:53:59 +0000 (22:53 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 29 Jun 2014 21:45:26 +0000 (23:45 +0200)
source4/rpc_server/drsuapi/getncchanges.c

index 6e0d0b3e3e6d7a1c823bfad750f3bd0841525a88..7fe883ad4313247b11d1904c5b8464a410ffd606 100644 (file)
@@ -1863,16 +1863,16 @@ allowed:
                return WERR_DS_DRA_INTERNAL_ERROR;
        }
 
-       /* Force a reload */
-       schema->last_refresh = 0;
+//     /* Force a reload */
+//     schema->last_refresh = 0;
 //     //schema->metadata_usn = 0;
-       talloc_unlink(mem_ctx, schema);
-
-       schema = dsdb_get_schema(sam_ctx, mem_ctx);
-       if (!schema) {
-               DEBUG(0,("No schema in sam_ctx\n"));
-               return WERR_DS_DRA_INTERNAL_ERROR;
-       }
+//     talloc_unlink(mem_ctx, schema);
+//
+//     schema = dsdb_get_schema(sam_ctx, mem_ctx);
+//     if (!schema) {
+//             DEBUG(0,("No schema in sam_ctx\n"));
+//             return WERR_DS_DRA_INTERNAL_ERROR;
+//     }
 
        r->out.ctr->ctr6.naming_context = talloc(mem_ctx, struct drsuapi_DsReplicaObjectIdentifier);
        *r->out.ctr->ctr6.naming_context = *ncRoot;