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
Nadezhda Ivanova
OpenLDAP
Commits
64dd6a07
Commit
64dd6a07
authored
Nov 13, 2003
by
Jong Hyuk Choi
Browse files
fix for the cascading replication (reenabling test019)
parent
0db0d4e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/ldap.h
View file @
64dd6a07
...
...
@@ -219,10 +219,6 @@ typedef struct ldapcontrol {
#define LDAP_TAG_REFRESHDONE ((ber_tag_t) 0x01U)
#define LDAP_TAG_RELOAD_HINT ((ber_tag_t) 0x01U)
#define LDAP_SYNC_STATE_MODE 0
#define LDAP_SYNC_LOG_MODE 1
#define LDAP_SYNC_PERSIST_MODE 2
#define LDAP_SYNC_PRESENT 0
#define LDAP_SYNC_ADD 1
#define LDAP_SYNC_MODIFY 2
...
...
servers/slapd/syncrepl.c
View file @
64dd6a07
...
...
@@ -571,7 +571,15 @@ do_syncrep2(
ber_scanf
(
ber
,
"t{"
,
&
tag
);
if
(
ber_peek_tag
(
ber
,
&
len
)
==
LDAP_TAG_SYNC_COOKIE
)
{
ber_scanf
(
ber
,
"m"
,
&
tag
,
&
cookie
);
ber_scanf
(
ber
,
"m"
,
&
cookie
);
if
(
cookie
.
bv_val
)
{
struct
berval
tmp_bv
;
ber_dupbv
(
&
tmp_bv
,
&
cookie
);
ber_bvarray_add
(
&
syncCookie
.
octet_str
,
&
tmp_bv
);
}
if
(
syncCookie
.
octet_str
&&
syncCookie
.
octet_str
[
0
].
bv_val
)
slap_parse_sync_cookie
(
&
syncCookie
);
}
if
(
ber_peek_tag
(
ber
,
&
len
)
==
LDAP_TAG_REFRESHDONE
)
...
...
@@ -585,7 +593,15 @@ do_syncrep2(
ber_scanf
(
ber
,
"t{"
,
&
tag
);
if
(
ber_peek_tag
(
ber
,
&
len
)
==
LDAP_TAG_SYNC_COOKIE
)
{
ber_scanf
(
ber
,
"m"
,
&
tag
,
&
cookie
);
ber_scanf
(
ber
,
"m"
,
&
cookie
);
if
(
cookie
.
bv_val
)
{
struct
berval
tmp_bv
;
ber_dupbv
(
&
tmp_bv
,
&
cookie
);
ber_bvarray_add
(
&
syncCookie
.
octet_str
,
&
tmp_bv
);
}
if
(
syncCookie
.
octet_str
&&
syncCookie
.
octet_str
[
0
].
bv_val
)
slap_parse_sync_cookie
(
&
syncCookie
);
}
if
(
ber_peek_tag
(
ber
,
&
len
)
==
LDAP_TAG_REFRESHDELETES
)
...
...
tests/scripts/test019-syncreplication-cascade
View file @
64dd6a07
#! /bin/sh
# $OpenLDAP$
echo
"temporarily disabled"
exit
0
echo
"running defines.sh"
.
$SRCDIR
/scripts/defines.sh
...
...
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