]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/key.c
ITS#4088 force cursors to use same locker
[openldap] / servers / slapd / back-bdb / key.c
index c84028542d2747eb102dd53f9081c218208142be..e64236693578b93efa160842596e3ec413bd1a8e 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2000-2004 The OpenLDAP Foundation.
+ * Copyright 2000-2005 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -32,7 +32,9 @@ bdb_key_read(
        DB *db,
        DB_TXN *txn,
        struct berval *k,
-       ID *ids
+       ID *ids,
+       DBC **saved_cursor,
+       int get_flag
 )
 {
        int rc;
@@ -45,7 +47,7 @@ bdb_key_read(
        key.ulen = key.size;
        key.flags = DB_DBT_USERMEM;
 
-       rc = bdb_idl_fetch_key( be, db, txn, &key, ids );
+       rc = bdb_idl_fetch_key( be, db, txn, &key, ids, saved_cursor, get_flag );
 
        if( rc != LDAP_SUCCESS ) {
                Debug( LDAP_DEBUG_TRACE, "<= bdb_index_read: failed (%d)\n",