]> git.sur5r.net Git - openldap/commitdiff
patch for ITS#3173
authorJong Hyuk Choi <jongchoi@openldap.org>
Tue, 22 Jun 2004 23:22:16 +0000 (23:22 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Tue, 22 Jun 2004 23:22:16 +0000 (23:22 +0000)
- passing transaction ptr to psearch

servers/slapd/back-bdb/proto-bdb.h
servers/slapd/back-bdb/search.c

index 8561e1ca5d9f205b829593057ccd31e22ba6071a..40a9f5a86788b538decb779960bbe3f768aef619 100644 (file)
@@ -537,10 +537,19 @@ int bdb_locker_id( Operation *op, DB_ENV *env, int *locker );
 #define bdb_abandon                                    BDB_SYMBOL(abandon)
 #define bdb_cancel                                     BDB_SYMBOL(cancel)
 #define bdb_do_search                          BDB_SYMBOL(do_search)
+#define bdb_psearch                            BDB_SYMBOL(psearch)
 
 BI_op_abandon bdb_abandon;
 BI_op_cancel bdb_cancel;
 
+int bdb_psearch(
+       Operation       *op,
+       SlapReply       *rs,
+       Operation       *ps_op,
+       Entry           *entry,
+       int             psearch_type
+);
+
 int bdb_do_search(
        Operation       *op,
        SlapReply       *rs,
@@ -548,7 +557,6 @@ int bdb_do_search(
        Entry           *entry,
        int             psearch_type
 );
-#define        bdb_psearch(op, rs, sop, e, ps_type)    bdb_do_search(op, rs, sop, e, ps_type)
 
 /*
  * trans.c
index 9bdf1799c08aefb6bb6048d2b666b5ad5b5f0f2e..f93dfad268c9a2f30dd2857191e83038f3217671 100644 (file)
@@ -361,6 +361,14 @@ int bdb_search( Operation *op, SlapReply *rs )
        return bdb_do_search( op, rs, op, NULL, 0 );
 }
 
+int bdb_psearch( Operation *op, SlapReply *rs, Operation *sop,
+       Entry *ps_e, int ps_type )
+{
+       sop->o_private = op->o_private;
+       bdb_do_search( op, rs, sop, ps_e, ps_type );
+       sop->o_private = NULL;
+}
+
 /* For persistent searches, op is the currently executing operation,
  * sop is the persistent search. For regular searches, sop = op.
  */