]> git.sur5r.net Git - openldap/commitdiff
Missed portion of 04f8fa5619fed389f238d780129d535a0947ee6f
authorQuanah Gibson-Mount <quanah@openldap.org>
Sat, 5 Nov 2011 00:19:20 +0000 (17:19 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sat, 5 Nov 2011 00:19:20 +0000 (17:19 -0700)
servers/slapd/overlays/rwm.c

index c724be2b9dd3ef39fd326f8f149adf6fb71491b7..cf8b1da67f8013929b306341493ec40db3241025 100644 (file)
@@ -911,6 +911,7 @@ rwm_entry_get_rw( Operation *op, struct berval *ndn,
                /* duplicate & release */
                op2.o_bd->bd_info = (BackendInfo *)on;
                rc = rwm_send_entry( &op2, &rs );
+               RS_ASSERT( rs.sr_flags & REP_ENTRY_MUSTFLUSH );
                if ( rc == SLAP_CB_CONTINUE ) {
                        *ep = rs.sr_entry;
                        rc = LDAP_SUCCESS;
@@ -1498,6 +1499,7 @@ rwm_send_entry( Operation *op, SlapReply *rs )
        } else if ( rs->sr_flags & REP_ENTRY_MUSTRELEASE ) {
                /* ITS#6423: REP_ENTRY_MUSTRELEASE incompatible
                 * with REP_ENTRY_MODIFIABLE */
+               RS_ASSERT( 0 );
                rc = 1;
                goto fail;
        }