From: Robert Varga Date: Thu, 21 Mar 2024 08:47:32 +0000 (+0100) Subject: JournalIndex.truncate() should return last entry X-Git-Tag: v9.0.2~23 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=2a6738b69c763377d1f727da9876ffdd9058262f;hp=2a6738b69c763377d1f727da9876ffdd9058262f;p=controller.git JournalIndex.truncate() should return last entry The only time we are calling truncate(), we are following up with a seek to the appropriate entry. Return the last indexed position from truncate(), so we can do better than a linear search. JIRA: CONTROLLER-2109 Change-Id: I701b0eefbf1f4d83f74ba95b93c41407289d95cb Signed-off-by: Robert Varga ---