Commit 20dc49e4 authored by Shawn McKinney's avatar Shawn McKinney
Browse files

always perform update

parent 1477cc9f
......@@ -37,6 +37,11 @@ public class ModUser extends LoadBase
Timestamp timestamp = new Timestamp(System.currentTimeMillis());
write( "threadid: " + getThreadId() + ", userId: " + userId );
User outUser;
user.setDescription( "mod once: " + user.getUserId() + ": " + timestamp);
user.setCn( user.getUserId() + "-once");
user.setDisplayName( user.getUserId() + "-once");
outUser = userImpl.update( user );
assertNotNull( outUser );
if ( modrdn > 0 && count > modrdn && ( count % modrdn ) == 0 )
{
String szNewRdn = StringUtils.isNotEmpty( newrdn) ? newrdn : user.getUserId();
......@@ -44,17 +49,8 @@ public class ModUser extends LoadBase
outUser = userImpl.modRdn( user, szNewRdn, newdn );
assertNotNull( outUser );
}
else
{
user.setDescription( "mod once: " + user.getUserId() + ": " + timestamp);
user.setCn( user.getUserId() + "-once");
user.setDisplayName( user.getUserId() + "-once");
outUser = userImpl.update( user );
assertNotNull( outUser );
}
// This tests replication, ability to handle conflicts:
if ( duplicate > 0 && count > duplicate && ( count % duplicate ) == 0 )
else if ( duplicate > 0 && count > duplicate && ( count % duplicate ) == 0 )
{
warn( "DUPLICATE Mod[" + count + "]: " + user.getUserId() );
user.setDescription( "mod twice: " + user.getUserId() + ": " + timestamp);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment