ITS#4613 - fail to start if lastmod is off

This commit is contained in:
Howard Chu 2006-07-24 00:32:27 +00:00
parent 75064457c0
commit 00addd5d68

View File

@ -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;
}