Skip to content

Is affinity() supposed to return a Pair{OSProc, UInt64} or a Vector{Pair{OSProc, UInt64}}? #295

@mattwigway

Description

@mattwigway

The definition of affinity for a DRef returns a pair, while the definition for a FileRef returns a singleton Vector{Pair}. This is causing a boundserror in Sch.jl which calls affinity(...)[2] and crashes when affinity returns a singleton vector. This is causing the tests for JuliaDB to fail on Julia 1.7 (though they work on earlier versions, perhaps those versions are using the DRef codepath). Based on the code it seems like affinity should return a Pair rather than a Vector{Pair}, but wanted to confirm before making a PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions