Skip to content

Commit

Permalink
fix a bug with remote restore-incremental return type handling
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Jul 17, 2015
1 parent 6ceff1c commit 39bf819
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ end

function _include_from_serialized(content::Vector{UInt8})
m = ccall(:jl_restore_incremental_from_buf, UInt, (Ptr{Uint8},Int), content, sizeof(content))
return m
return m != 0
end

function _require_from_serialized(node::Int, path_to_try::ByteString)
Expand All @@ -63,8 +63,8 @@ function _require_from_serialized(node::Int, path_to_try::ByteString)
refs = Any[ @spawnat p _include_from_serialized(content) for p in others]
successes = Any[ fetch(ref) for ref in refs ]
for (id, ref) in zip(others, refs)
if fetch(ref) != 0
warn("node state is inconsistent: node $i failed to load serialized cache from :node $id:$path_to_try.")
if fetch(ref)
warn("node state is inconsistent: node $id failed to load serialized cache from :node $node:$path_to_try.")
end
end
return true
Expand Down

0 comments on commit 39bf819

Please sign in to comment.