File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,15 @@ void BerkeleyEnvironment::ReloadDbEnv()
462
462
Open (open_err);
463
463
}
464
464
465
+ DbTxn* BerkeleyEnvironment::TxnBegin (int flags)
466
+ {
467
+ DbTxn* ptxn = nullptr ;
468
+ int ret = dbenv->txn_begin (nullptr , &ptxn, flags);
469
+ if (!ptxn || ret != 0 )
470
+ return nullptr ;
471
+ return ptxn;
472
+ }
473
+
465
474
bool BerkeleyDatabase::Rewrite (const char * pszSkip)
466
475
{
467
476
while (true ) {
Original file line number Diff line number Diff line change @@ -67,14 +67,7 @@ class BerkeleyEnvironment
67
67
void CloseDb (const fs::path& filename);
68
68
void ReloadDbEnv ();
69
69
70
- DbTxn* TxnBegin (int flags)
71
- {
72
- DbTxn* ptxn = nullptr ;
73
- int ret = dbenv->txn_begin (nullptr , &ptxn, flags);
74
- if (!ptxn || ret != 0 )
75
- return nullptr ;
76
- return ptxn;
77
- }
70
+ DbTxn* TxnBegin (int flags);
78
71
};
79
72
80
73
/* * Get BerkeleyEnvironment given a directory path. */
You can’t perform that action at this time.
0 commit comments