]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-monitor/time.c
publish updateref...
[openldap] / servers / slapd / back-monitor / time.c
index bc4056b939c1e49436b6e9e698083443092103b3..685365c9eba0f4e2553e4ba55b50b62754555332 100644 (file)
@@ -169,8 +169,8 @@ monitor_subsys_time_init(
 int
 monitor_subsys_time_update(
        Operation               *op,
-       Entry                   *e
-)
+       SlapReply               *rs,
+       Entry                   *e )
 {
        monitor_info_t          *mi = ( monitor_info_t * )op->o_bd->be_private;
        static struct berval    bv_current = BER_BVC( "cn=current" );
@@ -219,13 +219,15 @@ monitor_subsys_time_update(
 
                a = attr_find( e->e_attrs, mi->mi_ad_monitorTimestamp );
                if ( a == NULL ) {
-                       return( -1 );
+                       return rs->sr_err = LDAP_OTHER;
                }
 
                assert( len == a->a_vals[ 0 ].bv_len );
                AC_MEMCPY( a->a_vals[ 0 ].bv_val, tmbuf, len );
+
+               /* FIXME: touch modifyTimestamp? */
        }
 
-       return( 0 );
+       return SLAP_CB_CONTINUE;
 }