Fix 2 small regression introduced recently in the replication code on the trunk
- Replication servers can take up to 10 seconds to stop, this sometimes cause
the ReplicationServerTest to fail.
- The ServerState is repetitively saved in the suffix root entry causing
unnecessary MODIFY request every second.
Those 2 problems are not in the 1.2 branch
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.replication.common; |
| | | |
| | |
| | | */ |
| | | public void setSaved(boolean b) |
| | | { |
| | | saved = false; |
| | | saved = b; |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | try |
| | | { |
| | | msgQueue.wait(10000); |
| | | msgQueue.wait(1000); |
| | | } catch (InterruptedException e) |
| | | { } |
| | | } |