瀏覽代碼

Ticket #48799 - objectclass values could be dropped on the consumer

Description: slapi_schema_expand_objectclasses was dropped if the modify
operation is replicated in the fix of Ticket 17 "new replication optimizations".

Since the replicated mods does not contain the expanded objectclasses,
slapi_schema_expand_objectclasses is needed on the consumer, too.

This patch resurrects the call for the consumer.

https://fedorahosted.org/389/ticket/48799

Author: nhosoi

Review: wibrown
Noriko Hosoi 9 年之前
父節點
當前提交
a80b2d85be
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ldap/servers/slapd/back-ldbm/ldbm_modify.c

+ 1 - 1
ldap/servers/slapd/back-ldbm/ldbm_modify.c

@@ -299,7 +299,7 @@ modify_apply_check_expand(
 	 * If the objectClass attribute type was modified in any way, expand
 	 * the objectClass values to reflect the inheritance hierarchy.
 	 */
-	for ( i = 0; (mods != NULL) && (mods[i] != NULL) && !repl_op; ++i ) {
+	for ( i = 0; mods && mods[i]; ++i ) {
 		if ( 0 == strcasecmp( SLAPI_ATTR_OBJECTCLASS, mods[i]->mod_type )) {
 			slapi_schema_expand_objectclasses( ec->ep_entry );
 			break;