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
88e2771b
Commit
88e2771b
authored
20 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#3309 better fix, add op->ord_csn in frontend and use it in backend.
parent
320ab38e
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
servers/slapd/back-bdb/delete.c
+2
-8
2 additions, 8 deletions
servers/slapd/back-bdb/delete.c
servers/slapd/delete.c
+2
-3
2 additions, 3 deletions
servers/slapd/delete.c
servers/slapd/slap.h
+7
-0
7 additions, 0 deletions
servers/slapd/slap.h
with
11 additions
and
11 deletions
servers/slapd/back-bdb/delete.c
+
2
−
8
View file @
88e2771b
...
...
@@ -19,8 +19,6 @@
#include
<stdio.h>
#include
<ac/string.h>
#include
"lutil.h"
#include
"back-bdb.h"
#include
"external.h"
...
...
@@ -49,8 +47,6 @@ bdb_delete( Operation *op, SlapReply *rs )
EntryInfo
*
suffix_ei
;
Entry
*
ctxcsn_e
;
int
ctxcsn_added
=
0
;
char
csnbuf
[
LDAP_LUTIL_CSNSTR_BUFSIZE
];
struct
berval
csn
;
LDAPControl
**
preread_ctrl
=
NULL
;
LDAPControl
*
ctrls
[
SLAP_MAX_RESPONSE_CONTROLS
];
...
...
@@ -69,8 +65,6 @@ bdb_delete( Operation *op, SlapReply *rs )
op
->
o_req_dn
.
bv_val
,
0
,
0
);
#endif
slap_get_csn
(
op
,
csnbuf
,
sizeof
(
csnbuf
),
&
csn
,
1
);
if
(
0
)
{
retry:
/* transaction retry */
if
(
e
!=
NULL
)
{
...
...
@@ -591,9 +585,9 @@ retry: /* transaction retry */
if
(
(
void
*
)
e
->
e_attrs
!=
(
void
*
)
(
e
+
1
))
{
attr_delete
(
&
e
->
e_attrs
,
slap_schema
.
si_ad_entryCSN
);
attr_merge_normalize_one
(
e
,
slap_schema
.
si_ad_entryCSN
,
&
csn
,
NULL
);
&
op
->
ord_
csn
,
NULL
);
}
else
{
a
->
a_vals
[
0
]
=
csn
;
a
->
a_vals
[
0
]
=
op
->
ord_
csn
;
}
}
else
{
/* Hm, the entryCSN ought to exist. ??? */
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/delete.c
+
2
−
3
View file @
88e2771b
...
...
@@ -228,12 +228,11 @@ fe_op_delete( Operation *op, SlapReply *rs )
struct
berval
org_dn
=
BER_BVNULL
;
struct
berval
org_ndn
=
BER_BVNULL
;
int
org_managedsait
;
char
csnbuf
[
LDAP_LUTIL_CSNSTR_BUFSIZE
];
slap_callback
cb
=
{
NULL
,
slap_replog_cb
,
NULL
,
NULL
};
if
(
!
repl_user
)
{
struct
berval
csn
=
{
0
,
NULL
};
char
csnbuf
[
LDAP_LUTIL_CSNSTR_BUFSIZE
];
slap_get_csn
(
op
,
csnbuf
,
sizeof
(
csnbuf
),
&
csn
,
1
);
slap_get_csn
(
op
,
csnbuf
,
sizeof
(
csnbuf
),
&
op
->
ord_csn
,
1
);
}
#ifdef SLAPD_MULTIMASTER
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/slap.h
+
7
−
0
View file @
88e2771b
...
...
@@ -1685,6 +1685,10 @@ typedef struct req_add_s {
Modifications
*
rs_modlist
;
/* FIXME: temporary */
}
req_add_s
;
typedef
struct
req_delete_s
{
struct
berval
rd_csn
;
}
req_delete_s
;
typedef
struct
req_abandon_s
{
ber_int_t
rs_msgid
;
}
req_abandon_s
;
...
...
@@ -2062,6 +2066,7 @@ typedef struct slap_op {
req_add_s
oq_add
;
req_bind_s
oq_bind
;
req_compare_s
oq_compare
;
req_delete_s
oq_delete
;
req_modify_s
oq_modify
;
req_modrdn_s
oq_modrdn
;
req_search_s
oq_search
;
...
...
@@ -2075,6 +2080,7 @@ typedef struct slap_op {
#define oq_add o_request.oq_add
#define oq_bind o_request.oq_bind
#define oq_compare o_request.oq_compare
#define oq_delete o_request.oq_delete
#define oq_modify o_request.oq_modify
#define oq_modrdn o_request.oq_modrdn
#define oq_search o_request.oq_search
...
...
@@ -2109,6 +2115,7 @@ typedef struct slap_op {
#define orc_ava oq_compare.rs_ava
#define ora_e oq_add.rs_e
#define ora_modlist oq_add.rs_modlist
#define ord_csn oq_delete.rd_csn
#define orn_msgid oq_abandon.rs_msgid
#define orm_modlist oq_modify.rs_modlist
#define orm_increment oq_modify.rs_increment
...
...
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