Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
8083e583
Commit
8083e583
authored
Jan 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
3ae4e927
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
go/zodb/btree/ziobtree.go
go/zodb/btree/ziobtree.go
+2
-2
go/zodb/btree/zlobtree.go
go/zodb/btree/zlobtree.go
+2
-2
No files found.
go/zodb/btree/ziobtree.go
View file @
8083e583
...
...
@@ -229,7 +229,7 @@ func (b *IOBucket) get(key int32) (interface{}, bool) {
// MinKey returns minimum key in IOBTree.
//
// If the tree is empty, ok=false is returned.
//
t
does not need to be activated beforehand.
//
The tree
does not need to be activated beforehand.
func
(
t
*
IOBTree
)
MinKey
(
ctx
context
.
Context
)
(
_
int32
,
ok
bool
,
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"btree(%s): minkey"
,
t
.
POid
())
err
=
t
.
PActivate
(
ctx
)
...
...
@@ -267,7 +267,7 @@ func (t *IOBTree) MinKey(ctx context.Context) (_ int32, ok bool, err error) {
// MaxKey returns maximum key in IOBTree.
//
// If the tree is empty, ok=false is returned.
//
t
does not need to be activated beforehand.
//
The tree
does not need to be activated beforehand.
func
(
t
*
IOBTree
)
MaxKey
(
ctx
context
.
Context
)
(
_
int32
,
_
bool
,
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"btree(%s): maxkey"
,
t
.
POid
())
err
=
t
.
PActivate
(
ctx
)
...
...
go/zodb/btree/zlobtree.go
View file @
8083e583
...
...
@@ -229,7 +229,7 @@ func (b *LOBucket) get(key int64) (interface{}, bool) {
// MinKey returns minimum key in LOBTree.
//
// If the tree is empty, ok=false is returned.
//
t
does not need to be activated beforehand.
//
The tree
does not need to be activated beforehand.
func
(
t
*
LOBTree
)
MinKey
(
ctx
context
.
Context
)
(
_
int64
,
ok
bool
,
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"btree(%s): minkey"
,
t
.
POid
())
err
=
t
.
PActivate
(
ctx
)
...
...
@@ -267,7 +267,7 @@ func (t *LOBTree) MinKey(ctx context.Context) (_ int64, ok bool, err error) {
// MaxKey returns maximum key in LOBTree.
//
// If the tree is empty, ok=false is returned.
//
t
does not need to be activated beforehand.
//
The tree
does not need to be activated beforehand.
func
(
t
*
LOBTree
)
MaxKey
(
ctx
context
.
Context
)
(
_
int64
,
_
bool
,
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"btree(%s): maxkey"
,
t
.
POid
())
err
=
t
.
PActivate
(
ctx
)
...
...
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