OpenLDAP
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest

Viewing Incoming/8010
Full headers

From: scott@GameRanger.com
Subject: LMDB: New mdb_txn_begin() flag to init as reset
Compose comment
Download message
State:
0 replies:
0 followups:

Major security issue: yes  no

Notes:

Notification:


Date: Tue, 23 Dec 2014 03:30:31 +0000
From: scott@GameRanger.com
To: openldap-its@OpenLDAP.org
Subject: LMDB: New mdb_txn_begin() flag to init as reset
Full_Name: Scott Kevill
Version: n/a
OS: n/a
URL: 
Submission from: (NULL) (101.166.148.57)


Using a read-only txn with mdb_txn_reset() and mdb_txn_renew() is a little
clumsy at the moment because the first use needs to be a mdb_txn_begin().

This means either an initial mdb_txn_begin() + mdb_txn_reset() to get it into
the reset state, or else for every operation to do something like:

if (txn)
    mdb_txn_renew()
else
    mdb_txn_begin()

... do work ...

mdb_txn_reset()

An additional flag (eg. MDB_RESET?) for mdb_txn_begin() that only worked in
conjunction with MDB_RDONLY could save that (minor) wasted work.
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest


The OpenLDAP Issue Tracking System uses a hacked version of JitterBug

______________
© Copyright 2013, OpenLDAP Foundation, info@OpenLDAP.org