forked from blue/lmdbal
pragma once and minor change in transactions
This commit is contained in:
parent
43d4900809
commit
56d35d4832
29 changed files with 79 additions and 143 deletions
|
@ -16,8 +16,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LMDBAL_CURSOR_HPP
|
||||
#define LMDBAL_CURSOR_HPP
|
||||
#pragma once
|
||||
|
||||
#include "cursor.h"
|
||||
#include <iostream>
|
||||
|
@ -482,7 +481,7 @@ void LMDBAL::Cursor<K, V>::prev (K& key, V& value) {
|
|||
* \exception LMDBAL::Unknown thrown if there was some unexpected problem with lmdb
|
||||
*/
|
||||
template<class K, class V>
|
||||
void LMDBAL::Cursor<K, V>::current (K& key, V& value) const {
|
||||
void LMDBAL::Cursor<K, V>::current (K& key, V& value) const {
|
||||
operateCursorRead(key, value, MDB_GET_CURRENT, currentMethodName, currentOperationName);
|
||||
}
|
||||
|
||||
|
@ -657,5 +656,3 @@ void LMDBAL::Cursor<K, V>::operateCursorRead(
|
|||
else
|
||||
storage->discoveredRecord(key, value, storage->_mdbCursorTxn(cursor));
|
||||
}
|
||||
|
||||
#endif //LMDBAL_CURSOR_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue