Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Junming
jio
Commits
7cd7e8bc
Commit
7cd7e8bc
authored
Apr 11, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replicate repair fix
parent
9382e3f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
src/jio.storage/replicatestorage.js
src/jio.storage/replicatestorage.js
+11
-10
No files found.
src/jio.storage/replicatestorage.js
View file @
7cd7e8bc
...
...
@@ -374,28 +374,29 @@
function
repairSubStorages
()
{
var
promise_list
=
[],
i
;
for
(
i
=
0
;
i
<
length
;
i
+=
1
)
{
promise_list
[
i
]
=
s
torage_list
[
i
].
repair
(
param
,
option
);
promise_list
[
i
]
=
s
uccess
(
storage_list
[
i
].
repair
(
param
,
option
)
);
}
return
all
(
promise_list
);
}
function
returnThe404ReasonsElseNull
(
reason
)
{
if
(
reason
.
status
===
404
)
{
return
404
;
}
return
null
;
}
function
getSubStoragesDocument
()
{
var
promise_list
=
[],
i
;
for
(
i
=
0
;
i
<
length
;
i
+=
1
)
{
promise_list
[
i
]
=
success
(
storage_list
[
i
].
get
(
param
));
promise_list
[
i
]
=
storage_list
[
i
].
get
(
param
).
then
(
null
,
returnThe404ReasonsElseNull
);
}
return
all
(
promise_list
);
}
function
synchronizeDocument
(
answers
)
{
return
this_
.
syncGetAnswerList
(
answers
.
map
(
function
(
answer
)
{
if
(
answer
.
result
===
"
success
"
)
{
return
answer
;
}
if
(
answer
.
status
===
404
)
{
return
404
;
}
}));
return
this_
.
syncGetAnswerList
(
command
,
answers
);
}
function
checkAnswers
(
answers
)
{
...
...
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