Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xanadu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
SYNERG
xanadu
Commits
4c5d95ae
Commit
4c5d95ae
authored
Apr 08, 2020
by
Nilanjan Daw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Infinite loop bug fix
parent
8aec2c81
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
dispatch_system/dispatch_manager/explicit_chain_handler.js
dispatch_system/dispatch_manager/explicit_chain_handler.js
+11
-4
No files found.
dispatch_system/dispatch_manager/explicit_chain_handler.js
View file @
4c5d95ae
...
@@ -318,11 +318,13 @@ function checkCondition(op1, op2, op, result) {
...
@@ -318,11 +318,13 @@ function checkCondition(op1, op2, op, result) {
}
}
async
function
speculative_deployment
(
chain_id
,
aliases
,
map
,
offset
,
done
,
toBeDone
)
{
async
function
speculative_deployment
(
chain_id
,
aliases
,
map
,
offset
,
done
,
toBeDone
)
{
console
.
log
(
done
,
toBeDone
);
if
(
constants
.
speculative_deployment
)
{
if
(
constants
.
speculative_deployment
)
{
let
getData
=
[]
let
getData
=
[]
for
(
const
[
mod
,
metadata
]
of
Object
.
entries
(
map
))
{
for
(
const
[
mod
,
metadata
]
of
Object
.
entries
(
map
))
{
if
(
metadata
.
type
!==
'
function
'
)
{
if
(
metadata
.
type
!==
'
function
'
)
{
if
(
metadata
.
type
===
'
conditional
'
)
{
if
(
metadata
.
type
===
'
conditional
'
&&
!
constants
.
JIT_deployment
)
{
let
probability
let
probability
try
{
try
{
probability
=
conditionProbabilityExpilict
[
chain_id
][
mod
].
probability
probability
=
conditionProbabilityExpilict
[
chain_id
][
mod
].
probability
...
@@ -356,10 +358,15 @@ async function speculative_deployment(chain_id, aliases, map, offset, done, toBe
...
@@ -356,10 +358,15 @@ async function speculative_deployment(chain_id, aliases, map, offset, done, toBe
for
(
const
data
of
values
)
{
for
(
const
data
of
values
)
{
dataMap
[
data
.
_id
]
=
data
dataMap
[
data
.
_id
]
=
data
}
}
if
(
!
done
)
console
.
log
(
"
line 361
"
,
done
,
toBeDone
);
if
(
done
===
undefined
)
{
console
.
log
(
"
new map
"
);
done
=
new
Map
()
done
=
new
Map
()
if
(
!
toBeDone
)
}
if
(
toBeDone
===
undefined
)
{
toBeDone
=
new
Set
()
toBeDone
=
new
Set
()
}
// var plannerMap = new Map(map)
// var plannerMap = new Map(map)
do
{
do
{
for
(
const
[
mod
,
metadata
]
of
Object
.
entries
(
map
))
{
for
(
const
[
mod
,
metadata
]
of
Object
.
entries
(
map
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment