]> git.sur5r.net Git - openldap/commitdiff
filter2bv can't de-normalize UUIDs, must do it explicitly for back-ldap
authorHoward Chu <hyc@openldap.org>
Sun, 5 Feb 2006 01:05:38 +0000 (01:05 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 5 Feb 2006 01:05:38 +0000 (01:05 +0000)
in test045

servers/slapd/syncrepl.c

index 79643c6ee980eb9e57c3162ae395f31ad10c12c9..8e03534750875c29024e60fd9310c6de8940de0f 100644 (file)
@@ -2051,8 +2051,12 @@ syncrepl_del_nonpresent(
 
                for (i=0; uuids[i].bv_val; i++) {
                        op->ors_slimit = 1;
+                       slap_uuidstr_from_normalized( &uf.f_av_value, &uuids[i],
+                               op->o_tmpmemctx );
+                       filter2bv_x( op, op->ors_filter, &op->ors_filterstr );
                        uf.f_av_value = uuids[i];
                        rc = be->be_search( op, &rs_search );
+                       op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );
                }
                si->si_refreshDelete ^= NP_DELETE_ONE;
        } else {