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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
515968ad
Commit
515968ad
authored
Oct 25, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6dfc0ba4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
wcfs/vendor/lab.nexedi.com/kirr/neo/go/zodb/storage.go
wcfs/vendor/lab.nexedi.com/kirr/neo/go/zodb/storage.go
+3
-3
wcfs/zblk.go
wcfs/zblk.go
+3
-2
No files found.
wcfs/vendor/lab.nexedi.com/kirr/neo/go/zodb/storage.go
View file @
515968ad
...
...
@@ -23,7 +23,7 @@ package zodb
import
(
"context"
"fmt"
"log"
//
"log"
"net/url"
"strings"
"sync"
...
...
@@ -128,8 +128,8 @@ func Open(ctx context.Context, zurl string, opt *OpenOptions) (IStorage, error)
cache
=
NewCache
(
storDriver
,
128
*
4
*
1024
)
// FIXME teach cache for watching and remove vvv
log
.
Printf
(
"zodb: FIXME: open %s: raw cache is not ready for invalidations"
+
" -> NoCache forced"
,
zurl
)
//
log.Printf("zodb: FIXME: open %s: raw cache is not ready for invalidations" +
//
" -> NoCache forced", zurl)
cache
=
nil
}
...
...
wcfs/zblk.go
View file @
515968ad
...
...
@@ -44,7 +44,7 @@ import (
"sync"
"syscall"
"lab.nexedi.com/kirr/go123/mem"
//
"lab.nexedi.com/kirr/go123/mem"
"lab.nexedi.com/kirr/go123/xerr"
"lab.nexedi.com/kirr/go123/xsync"
"lab.nexedi.com/kirr/neo/go/zodb"
...
...
@@ -113,7 +113,8 @@ func (zb *ZBlk0) loadBlkData(ctx context.Context) (_ []byte, _ zodb.Tid, err err
}
defer
zb
.
PDeactivate
()
return
mem
.
Bytes
(
zb
.
blkdata
),
zb
.
PSerial
(),
nil
//return mem.Bytes(zb.blkdata), zb.PSerial(), nil // XXX -> []bytes(zb.blkdata)
return
[]
byte
(
zb
.
blkdata
),
zb
.
PSerial
(),
nil
}
// ---- ZBlk1 ---
...
...
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