Przeglądaj źródła

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 lat temu
rodzic
commit
7506eeab15
1 zmienionych plików z 4 dodań i 0 usunięć
  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],