Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • N neo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Kirill Smelkov
  • neo
  • Repository

Switch branch/tag
  • neo
  • go
  • zodb
  • δtail.go
Find file BlameHistoryPermalink
  • Kirill Smelkov's avatar
    go/zodb: Fix ΔTail.LastRevOf based on WCFS experience · bc3b5ec3
    Kirill Smelkov authored Jul 11, 2021
    - the only valid range for at is [tail, head]. Don't try to return anything
      meaningful for queries outside of this range and just panic instead. This is
      consistent with SliceByRev, which also panics on invalid query, and it is also
      consistent with semantic model that ΔTail is a vector with data keyed by tid in
      range (tail, head]: if key is out of vector range, access to the vector should
      panic, isn't it?
    
    - instead of returning revision of minimum entry on exact=n, always
      return (tail, exact=n) in that case.
    
    The change in behaviour is consistent with ΔFtail and ΔBtail from WCFS
    and is needed for ΔFtail to function correctly:
    
    https://lab.nexedi.com/kirr/wendelin.core/blob/22f5f096/wcfs/internal/xbtree/δbtail.go
    https://lab.nexedi.com/kirr/wendelin.core/blob/22f5f096/wcfs/internal/zdata/δftail.go
    bc3b5ec3

Replace δtail.go

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7