Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HAMANO Tsukasa
OpenLDAP
Commits
e2966056
Commit
e2966056
authored
Aug 18, 2011
by
Howard Chu
Browse files
Update DB tables on commit even if no dirty pages
parent
bab6be80
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libmdb/mdb.c
View file @
e2966056
...
...
@@ -140,7 +140,7 @@ typedef struct MDB_page { /* represents a page of storage */
#define mp_pgno mp_p.p_pgno
union
padded
{
pgno_t
p_pgno
;
/* page number */
void
*
p_
pad
;
void
*
p_
align
;
/* for IL32P64 */
}
mp_p
;
#define P_BRANCH 0x01
/* branch page */
#define P_LEAF 0x02
/* leaf page */
...
...
@@ -949,8 +949,9 @@ mdb_txn_commit(MDB_txn *txn)
mdb_txn_abort
(
txn
);
return
n
;
}
env
->
me_txn
=
NULL
;
done:
env
->
me_txn
=
NULL
;
/* update the DB tables */
{
int
toggle
=
!
env
->
me_db_toggle
;
...
...
@@ -976,7 +977,6 @@ mdb_txn_commit(MDB_txn *txn)
free
(
txn
);
txn
=
NULL
;
done:
mdb_txn_abort
(
txn
);
return
MDB_SUCCESS
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment