[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3680) Meta failsafe operation



ando@sys-net.it wrote:

>  I'd respond to this issue by correctly returning (52, 
>
>unavailable) instead of 80, and leave more sophisticated behavior to 2.3.
>  
>
If using back-ldap doesn't fit your needs, try this (trivial) patch and 
see if your clients behaves any better

diff -u -r1.60.2.16 search.c
--- servers/slapd/back-meta/search.c    19 Apr 2005 12:31:39 -0000    
1.60.2.16
+++ servers/slapd/back-meta/search.c    25 Apr 2005 15:03:11 -0000
@@ -85,7 +85,7 @@
     }
 
     if ( !meta_back_dobind( lc, op ) ) {
-        rs->sr_err = LDAP_OTHER;
+        rs->sr_err = LDAP_UNAVAILABLE;
          send_ldap_result( op, rs );
         return -1;
     }

otherwise, you'll have to wait for 2.3, because porting the retry 
feature from back-ldap to back-meta is not trivial.

p.

-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it



    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497