Commit 97ca23f6 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 1cd2aa17
......@@ -129,13 +129,13 @@ func (f *BigFile) LastBlkRev(blk int64, at zodb.Tid) (_ zodb.Tid, exact bool) {
// block was removed
if !ok {
return tabTev, tabRevExact
return tabRev, tabRevExact
}
// blktab[blk] was changed to point to a zblk @rev.
// blk revision is max rev and when zblk changed last in (rev, at] range.
zblkRev, zblkExact := δZ.LastRevOf(zblkOid, at)
if zblkRev > rev {
zblkRev, zblkRevExact := δZ.LastRevOf(zblkOid, at)
if zblkRev > tabRev {
return zblkRev, zblkRevExact
} else {
return tabRev, tabRevExact
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment