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

Jean-Noel Rouvignac
03.58.2013 e6213080a8f2332df41d85c42e855a881b27a007
opends/src/server/org/opends/server/replication/server/changelog/je/ReplicationDB.java
@@ -595,8 +595,11 @@
          // We could not move the cursor to the expected startCSN
          if (localCursor.getSearchKeyRange(key, data, DEFAULT) != SUCCESS)
          {
            // We could not even move the cursor close to it => failure
            throw new ChangelogException(Message.raw("CSN not available"));
            // We could not even move the cursor close to it
            // => return empty cursor
            isClosed = true;
            cursor = null;
            return;
          }
          // We can move close to the startCSN.
@@ -612,11 +615,6 @@
        cursor = localCursor;
        cursorHeld = cursor != null;
      }
      catch (ChangelogException e)
      {
        StaticUtils.close(localCursor);
        throw e;
      }
      catch (DatabaseException e)
      {
        StaticUtils.close(localCursor);