Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Levin Zimmermann
neoppod
Commits
91340c7a
Commit
91340c7a
authored
7 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7c87537a
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
19 deletions
+14
-19
t/neo/storage/fs1/fsb/fsbtree.go
t/neo/storage/fs1/fsb/fsbtree.go
+13
-18
t/neo/storage/fs1/fsb/fsbtree_util.go
t/neo/storage/fs1/fsb/fsbtree_util.go
+1
-1
No files found.
t/neo/storage/fs1/fsb/fsbtree.go
View file @
91340c7a
// DO NOT EDIT - AUTOGENERATED (by gen-fsbtree from github.com/cznic/b
bcff30a
)
// DO NOT EDIT - AUTOGENERATED (by gen-fsbtree from github.com/cznic/b
aaaa43c
)
// KEY=zodb.Oid VALUE=int64
// ---- 8< ----
...
...
@@ -830,13 +830,7 @@ func (e *Enumerator) Next() (k zodb.Oid, v int64, err error) {
}
if
e
.
ver
!=
e
.
t
.
ver
{
f
,
hit
:=
e
.
t
.
Seek
(
e
.
k
)
if
!
e
.
hit
&&
hit
{
if
err
=
f
.
next
();
err
!=
nil
{
return
}
}
f
,
_
:=
e
.
t
.
Seek
(
e
.
k
)
*
e
=
*
f
f
.
Close
()
}
...
...
@@ -853,7 +847,7 @@ func (e *Enumerator) Next() (k zodb.Oid, v int64, err error) {
i
:=
e
.
q
.
d
[
e
.
i
]
k
,
v
=
i
.
k
,
i
.
v
e
.
k
,
e
.
hit
=
k
,
fals
e
e
.
k
,
e
.
hit
=
k
,
tru
e
e
.
next
()
return
}
...
...
@@ -884,13 +878,7 @@ func (e *Enumerator) Prev() (k zodb.Oid, v int64, err error) {
}
if
e
.
ver
!=
e
.
t
.
ver
{
f
,
hit
:=
e
.
t
.
Seek
(
e
.
k
)
if
!
e
.
hit
&&
hit
{
if
err
=
f
.
prev
();
err
!=
nil
{
return
}
}
f
,
_
:=
e
.
t
.
Seek
(
e
.
k
)
*
e
=
*
f
f
.
Close
()
}
...
...
@@ -899,15 +887,22 @@ func (e *Enumerator) Prev() (k zodb.Oid, v int64, err error) {
return
}
if
!
e
.
hit
{
// move to previous because Seek overshoots if there's no hit
if
err
=
e
.
prev
();
err
!=
nil
{
return
}
}
if
e
.
i
>=
e
.
q
.
c
{
if
err
=
e
.
next
();
err
!=
nil
{
if
err
=
e
.
prev
();
err
!=
nil
{
return
}
}
i
:=
e
.
q
.
d
[
e
.
i
]
k
,
v
=
i
.
k
,
i
.
v
e
.
k
,
e
.
hit
=
k
,
fals
e
e
.
k
,
e
.
hit
=
k
,
tru
e
e
.
prev
()
return
}
...
...
This diff is collapsed.
Click to expand it.
t/neo/storage/fs1/fsb/fsbtree_util.go
View file @
91340c7a
// DO NOT EDIT - AUTOGENERATED (by gen-fsbtree from github.com/cznic/b
bcff30a
)
// DO NOT EDIT - AUTOGENERATED (by gen-fsbtree from github.com/cznic/b
aaaa43c
)
// ---- 8< ----
package
fsb
import
(
...
...
This diff is collapsed.
Click to expand it.
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