Ver código fonte

Resolves: #452328
Summary: range search anomaly on the integer type
Description: Retro changelog plugin automatically creates an index for
changeNumber, which has an integer type. To support the reange search againt
changeNumber, the index should have the matching order "integerOrderingMatch".

Noriko Hosoi 17 anos atrás
pai
commit
7506eeab15
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      ldap/servers/plugins/retrocl/retrocl_create.c

+ 4 - 0
ldap/servers/plugins/retrocl/retrocl_create.c

@@ -166,6 +166,10 @@ static int retrocl_create_be(const char *bedir)
     val.bv_len = strlen(val.bv_val);
     slapi_entry_add_values( e, "nsindextype", vals );
 
+    val.bv_val = "integerOrderingMatch";
+    val.bv_len = strlen(val.bv_val);
+    slapi_entry_add_values( e, "nsMatchingRule", vals );
+
     pb = slapi_pblock_new ();
     slapi_add_entry_internal_set_pb( pb, e, NULL /* controls */, 
 				     g_plg_identity[PLUGIN_RETROCL],