]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fix typos
authorHoward Chu <hyc@openldap.org>
Thu, 25 Aug 2011 00:01:26 +0000 (17:01 -0700)
committerHoward Chu <hyc@openldap.org>
Thu, 25 Aug 2011 00:01:26 +0000 (17:01 -0700)
servers/slapd/back-mdb/id2entry.c

index 8c3b0cf2bd3ebd960bbea6ab6ec20bcc668ab0fc..22456b96a4d29b7f58cd2fc8d504b93816008090 100644 (file)
@@ -56,7 +56,7 @@ static int mdb_id2entry_put(
 
        rc = mdb_put( tid, dbi, &key, &data, flag );
 
-       op->o_tmpfree( op->o_tmpmemctx, bv.bv_val );
+       op->o_tmpfree( bv.bv_val, op->o_tmpmemctx );
        return rc;
 }
 
@@ -341,7 +341,7 @@ mdb_opinfo_get( Operation *op, struct mdb_info *mdb, int rdonly, mdb_op_info **m
                }
                moi->moi_ref++;
                if ( !moi->moi_txn ) {
-                       rc = mdb_txn_begin( mdb->mi_dbenv, 1, &moi->moi_txn );
+                       rc = mdb_txn_begin( mdb->mi_dbenv, 0, &moi->moi_txn );
                        if (rc) {
                                Debug( LDAP_DEBUG_ANY, "mdb_opinfo_get: err %s(%d)\n",
                                        mdb_strerror(rc), rc, 0 );