mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
+ previously recordId from AppendOnlyLogOverMMappedFile was (almost) a recordOffset. recordOffset is int32-aligned, i.e. lowest 2 bits a always 01. In many use-cases we need to squeeze the id(int64) into an int(int32), so we cut off those 2 lowest bits to squeeze more -- which leaks the implementation details of AOLog. This change re-implements AOLog so that it reports recordId already squeezed as much, as possible -- so clients don't need to know about its implementation details. GitOrigin-RevId: e72ed8dccd6b393027fdbf6664f5f35a2d478ba6