瀏覽代碼

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 年之前
父節點
當前提交
7506eeab15
共有 1 個文件被更改,包括 4 次插入0 次删除
  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],