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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aurel
jio
Commits
045bfa65
Commit
045bfa65
authored
May 02, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gidstorage does not stop if storage is empty fix
parent
4ead8961
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/jio.storage/gidstorage.js
src/jio.storage/gidstorage.js
+8
-1
No files found.
src/jio.storage/gidstorage.js
View file @
045bfa65
...
@@ -600,7 +600,7 @@
...
@@ -600,7 +600,7 @@
*/
*/
that
.
allDocs
=
function
(
command
,
param
,
options
)
{
that
.
allDocs
=
function
(
command
,
param
,
options
)
{
/*jslint unparam: true */
/*jslint unparam: true */
var
include_docs
,
limit_start
,
limit_length
,
rows
,
i
=
0
;
var
include_docs
,
limit_start
,
limit_length
,
rows
,
end
,
i
=
0
;
include_docs
=
options
.
include_docs
;
include_docs
=
options
.
include_docs
;
options
.
include_docs
=
true
;
options
.
include_docs
=
true
;
...
@@ -627,6 +627,10 @@
...
@@ -627,6 +627,10 @@
return
command
.
storage
(
priv
.
sub_storage
).
allDocs
(
return
command
.
storage
(
priv
.
sub_storage
).
allDocs
(
options
options
).
then
(
function
(
response
)
{
).
then
(
function
(
response
)
{
if
(
response
.
data
.
total_rows
===
0
)
{
end
=
true
;
return
[];
}
/*jslint ass: true */
/*jslint ass: true */
var
result
=
[],
doc_gids
=
{},
row
,
gid
;
var
result
=
[],
doc_gids
=
{},
row
,
gid
;
response
=
response
.
data
;
response
=
response
.
data
;
...
@@ -657,6 +661,9 @@
...
@@ -657,6 +661,9 @@
doWhile
(
function
()
{
doWhile
(
function
()
{
/*jslint plusplus: true */
/*jslint plusplus: true */
return
doAllDocs
(
i
++
).
then
(
function
()
{
return
doAllDocs
(
i
++
).
then
(
function
()
{
if
(
end
)
{
return
false
;
}
if
(
limit_length
)
{
if
(
limit_length
)
{
if
(
rows
.
length
<
limit_length
)
{
if
(
rows
.
length
<
limit_length
)
{
return
true
;
return
true
;
...
...
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