Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio-main
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
jio-main
Commits
9a7c18e9
Commit
9a7c18e9
authored
Jul 23, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indexstorage wrong response returned -> fixed
parent
6a09ef93
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/jio.storage/indexstorage.js
src/jio.storage/indexstorage.js
+2
-2
test/jiotests.js
test/jiotests.js
+4
-4
No files found.
src/jio.storage/indexstorage.js
View file @
9a7c18e9
...
@@ -744,7 +744,7 @@
...
@@ -744,7 +744,7 @@
if
(
just_check
)
{
if
(
just_check
)
{
priv
.
getIndexDatabase
(
option
,
index
,
function
(
current_db
)
{
priv
.
getIndexDatabase
(
option
,
index
,
function
(
current_db
)
{
if
(
db
.
equals
(
current_db
))
{
if
(
db
.
equals
(
current_db
))
{
return
that
.
success
({
"
ok
"
:
true
,
"
_
id
"
:
command
.
getDocId
()});
return
that
.
success
({
"
ok
"
:
true
,
"
id
"
:
command
.
getDocId
()});
}
}
return
that
.
error
(
generateErrorObject
(
return
that
.
error
(
generateErrorObject
(
"
Different Index
"
,
"
Different Index
"
,
...
@@ -754,7 +754,7 @@
...
@@ -754,7 +754,7 @@
});
});
}
else
{
}
else
{
priv
.
storeIndexDatabaseList
(
db_list
,
{},
function
()
{
priv
.
storeIndexDatabaseList
(
db_list
,
{},
function
()
{
that
.
success
({
"
ok
"
:
true
,
"
_
id
"
:
command
.
getDocId
()});
that
.
success
({
"
ok
"
:
true
,
"
id
"
:
command
.
getDocId
()});
});
});
}
}
},
},
...
...
test/jiotests.js
View file @
9a7c18e9
...
@@ -4703,19 +4703,19 @@ test("Check & Repair", function () {
...
@@ -4703,19 +4703,19 @@ test("Check & Repair", function () {
o
.
jio
.
check
({
"
_id
"
:
"
B
"
},
o
.
f
);
o
.
jio
.
check
({
"
_id
"
:
"
B
"
},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
o
.
spy
(
o
,
"
value
"
,
{
"
_
id
"
:
"
A
"
,
"
ok
"
:
true
},
"
Repair database
"
);
o
.
spy
(
o
,
"
value
"
,
{
"
id
"
:
"
A
"
,
"
ok
"
:
true
},
"
Repair database
"
);
o
.
jio
.
repair
({
"
_id
"
:
"
A
"
},
o
.
f
);
o
.
jio
.
repair
({
"
_id
"
:
"
A
"
},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
o
.
spy
(
o
,
"
value
"
,
{
"
_
id
"
:
"
B
"
,
"
ok
"
:
true
},
"
Repair database
"
);
o
.
spy
(
o
,
"
value
"
,
{
"
id
"
:
"
B
"
,
"
ok
"
:
true
},
"
Repair database
"
);
o
.
jio
.
repair
({
"
_id
"
:
"
B
"
},
o
.
f
);
o
.
jio
.
repair
({
"
_id
"
:
"
B
"
},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
o
.
spy
(
o
,
"
value
"
,
{
"
_
id
"
:
"
A
"
,
"
ok
"
:
true
},
"
Check database again
"
);
o
.
spy
(
o
,
"
value
"
,
{
"
id
"
:
"
A
"
,
"
ok
"
:
true
},
"
Check database again
"
);
o
.
jio
.
check
({
"
_id
"
:
"
A
"
},
o
.
f
);
o
.
jio
.
check
({
"
_id
"
:
"
A
"
},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
o
.
spy
(
o
,
"
value
"
,
{
"
_
id
"
:
"
B
"
,
"
ok
"
:
true
},
"
Check database again
"
);
o
.
spy
(
o
,
"
value
"
,
{
"
id
"
:
"
B
"
,
"
ok
"
:
true
},
"
Check database again
"
);
o
.
jio
.
check
({
"
_id
"
:
"
B
"
},
o
.
f
);
o
.
jio
.
check
({
"
_id
"
:
"
B
"
},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
...
...
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