Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
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
Joshua
wendelin.core
Commits
e8c3499d
Commit
e8c3499d
authored
Mar 04, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2b18dfc1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
wcfs/wcfs.go
wcfs/wcfs.go
+4
-1
wcfs/zblk_test.go
wcfs/zblk_test.go
+3
-0
No files found.
wcfs/wcfs.go
View file @
e8c3499d
...
...
@@ -1535,6 +1535,7 @@ func main() {
defer
zstor
.
Close
()
zdb
:=
zodb
.
NewDB
(
zstor
)
defer
zdb
.
Close
()
// XXX err
zhead
,
err
:=
zopen
(
ctx
,
zdb
,
&
zodb
.
ConnOptions
{
// we need zhead.cache to be maintained across several transactions.
// see "3) for head/bigfile/* the following invariant is maintained ..."
...
...
@@ -1543,7 +1544,9 @@ func main() {
if
err
!=
nil
{
log
.
Fatal
(
err
)
}
zhead
.
Cache
()
.
SetControl
(
&
zodbCacheControl
{})
// XXX +locking?
zhead
.
Cache
()
.
Lock
()
zhead
.
Cache
()
.
SetControl
(
&
zodbCacheControl
{})
zhead
.
Cache
()
.
Unlock
()
// mount root + head/
// XXX -> newHead()
...
...
wcfs/zblk_test.go
View file @
e8c3499d
...
...
@@ -46,6 +46,9 @@ func TestZBlk(t *testing.T) {
ctx
:=
context
.
Background
()
stor
,
err
:=
zodb
.
OpenStorage
(
ctx
,
"testdata/zblk.fs"
,
&
zodb
.
OpenOptions
{
ReadOnly
:
true
});
X
(
err
)
db
:=
zodb
.
NewDB
(
stor
)
defer
func
()
{
err
:=
db
.
Close
();
X
(
err
)
}()
txn
,
ctx
:=
transaction
.
New
(
ctx
)
defer
txn
.
Abort
()
...
...
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