mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
04.57.2013 ed3418eb31bd54b0768b791ca5de353eaa7288c6
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, October 4, 2013 09:57 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, October 4, 2013 09:57 +0200
commited3418eb31bd54b0768b791ca5de353eaa7288c6
tree 224d680b0b7e122a94bd0c9b191c82c784d8296b tree | zip | gz
parent 2cc0baf3e716683c5fb8bc67cee764c46c5eb97d view | diff
OPENDJ-1169 (CR-2438) Exception/error lost when logging ERR_LOOP_REPLAYING_OPERATION


LDAPReplicationDomain.replay() may lose error messages after too many replay attempts if "op" gets overwritten.


LDAPReplicationDomain.java:
In replay():
- Added the "nextOp" local variable so the code can keep error messages in the "op" local variable until the next loop iteration starts.
- Reduced as much as possible the scope of local variables to avoid the need to reinitialize them.
- Renamed "newOp" local variables to "castOp"
1 files modified
54 ■■■■ changed files
opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java 54 ●●●● diff | view | raw | blame | history