mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#4613 - fail to start if lastmod is off
This commit is contained in:
parent
75064457c0
commit
00addd5d68
@ -1366,6 +1366,7 @@ syncprov_playlog( Operation *op, SlapReply *rs, sessionlog *sl,
|
||||
i++;
|
||||
AC_MEMCPY( cbuf, se->se_csn.bv_val, se->se_csn.bv_len );
|
||||
delcsn.bv_len = se->se_csn.bv_len;
|
||||
delcsn.bv_val[delcsn.bv_len] = '\0';
|
||||
} else {
|
||||
nmods++;
|
||||
j = num - nmods;
|
||||
@ -2326,6 +2327,12 @@ syncprov_db_open(
|
||||
int rc;
|
||||
void *thrctx = NULL;
|
||||
|
||||
if ( !SLAP_LASTMOD( be )) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"syncprov_db_open: invalid config, lastmod must be enabled\n", 0, 0, 0 );
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ( slapMode & SLAP_TOOL_MODE ) {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user