Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Barchiesi
OpenLDAP
Commits
a7c59508
Commit
a7c59508
authored
12 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Plain Diff
Merge remote branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
parents
354a1338
7333b6bd
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/libmdb/mdb.c
+15
-0
15 additions, 0 deletions
libraries/libmdb/mdb.c
with
15 additions
and
0 deletions
libraries/libmdb/mdb.c
+
15
−
0
View file @
a7c59508
...
...
@@ -6696,6 +6696,7 @@ int mdb_drop(MDB_txn *txn, MDB_dbi dbi, int del)
if
(
!
rc
)
mdb_close
(
txn
->
mt_env
,
dbi
);
}
else
{
/* reset the DB record, mark it dirty */
txn
->
mt_dbflags
[
dbi
]
|=
DB_DIRTY
;
txn
->
mt_dbs
[
dbi
].
md_depth
=
0
;
txn
->
mt_dbs
[
dbi
].
md_branch_pages
=
0
;
...
...
@@ -6703,6 +6704,20 @@ int mdb_drop(MDB_txn *txn, MDB_dbi dbi, int del)
txn
->
mt_dbs
[
dbi
].
md_overflow_pages
=
0
;
txn
->
mt_dbs
[
dbi
].
md_entries
=
0
;
txn
->
mt_dbs
[
dbi
].
md_root
=
P_INVALID
;
if
(
!
txn
->
mt_u
.
dirty_list
[
0
].
mid
)
{
MDB_cursor
m2
;
MDB_val
key
,
data
;
/* make sure we have at least one dirty page in this txn
* otherwise these changes will be ignored.
*/
key
.
mv_size
=
sizeof
(
txnid_t
);
key
.
mv_data
=
&
txn
->
mt_txnid
;
data
.
mv_size
=
sizeof
(
MDB_ID
);
data
.
mv_data
=
txn
->
mt_free_pgs
;
mdb_cursor_init
(
&
m2
,
txn
,
FREE_DBI
,
NULL
);
rc
=
mdb_cursor_put
(
&
m2
,
&
key
,
&
data
,
0
);
}
}
leave:
mdb_cursor_close
(
mc
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment