JournalIndex.truncate() should return last entry 49/110949/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Mar 2024 08:47:32 +0000 (09:47 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Mar 2024 09:02:03 +0000 (10:02 +0100)
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 <robert.varga@pantheon.tech>

No differences found