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
8129fa8f
Commit
8129fa8f
authored
Feb 20, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ef38617b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
go/zodb/open.go
go/zodb/open.go
+10
-3
No files found.
go/zodb/open.go
View file @
8129fa8f
...
@@ -168,16 +168,23 @@ type storage struct {
...
@@ -168,16 +168,23 @@ type storage struct {
// this go directly to driver
// this go directly to driver
func
(
s
*
storage
)
URL
()
string
{
return
s
.
driver
.
URL
()
}
func
(
s
*
storage
)
URL
()
string
{
return
s
.
driver
.
URL
()
}
func
(
s
*
storage
)
Iterate
(
ctx
context
.
Context
,
tidMin
,
tidMax
Tid
)
ITxnIterator
{
func
(
s
*
storage
)
Iterate
(
ctx
context
.
Context
,
tidMin
,
tidMax
Tid
)
ITxnIterator
{
// XXX downErr
return
s
.
driver
.
Iterate
(
ctx
,
tidMin
,
tidMax
)
return
s
.
driver
.
Iterate
(
ctx
,
tidMin
,
tidMax
)
}
}
func
(
s
*
storage
)
Close
()
error
{
func
(
s
*
storage
)
Close
()
error
{
// XXX Close - stop watching? (driver will close watchq in its own Close)
// XXX Close - stop watching? (driver will close watchq in its own Close)
return
s
.
driver
.
Shutdown
(
fmt
.
Errorf
(
"closed"
))
//return s.driver.Shutdown(fmt.Errorf("closed"))
// XXX downErr
return
s
.
driver
.
Close
()
}
}
// XXX LastTid - report only LastTid for which cache is ready?
func
(
s
*
storage
)
LastTid
(
ctx
context
.
Context
)
(
Tid
,
error
)
{
// or driver.LastTid(), then wait cache is ready?
// XXX LastTid - report only LastTid for which cache is ready?
// or driver.LastTid(), then wait cache is ready?
// XXX downErr
return
s
.
driver
.
LastTid
(
ctx
)
}
// Load implements Loader.
// Load implements Loader.
func
(
s
*
storage
)
Load
(
ctx
context
.
Context
,
xid
Xid
)
(
*
mem
.
Buf
,
Tid
,
error
)
{
func
(
s
*
storage
)
Load
(
ctx
context
.
Context
,
xid
Xid
)
(
*
mem
.
Buf
,
Tid
,
error
)
{
...
...
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