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
b47715f9
Commit
b47715f9
authored
Dec 29, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e80dcbde
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
5 deletions
+2
-5
go/NOTES-go
go/NOTES-go
+1
-1
go/zodb/storage/fs1/filestorage.go
go/zodb/storage/fs1/filestorage.go
+1
-0
go/zodb/storage/fs1/filestorage_test.go
go/zodb/storage/fs1/filestorage_test.go
+0
-2
go/zodb/str.go
go/zodb/str.go
+0
-2
No files found.
go/NOTES-go
View file @
b47715f9
? Load vs "deleted" -> err or data=nil ? -> stor.Conn flag
? IStorage.Load -> per storage connection
? IStorage.Load -> per storage connection
? random access -> mmap
? random access -> mmap
...
@@ -17,6 +16,7 @@ findrunnable
...
@@ -17,6 +16,7 @@ findrunnable
runqsteal
runqsteal
? runqgrab
? runqgrab
schedule <- top entry
schedule <- top entry
868c8b37 (runtime: only sleep before stealing work from a running P)
-> stopm() // stop and restart m after waiting for work
-> stopm() // stop and restart m after waiting for work
notesleep(m.park)
notesleep(m.park)
...
...
go/zodb/storage/fs1/filestorage.go
View file @
b47715f9
...
@@ -127,6 +127,7 @@ var dhPool = sync.Pool{New: func() interface{} { return &DataHeader{} }}
...
@@ -127,6 +127,7 @@ var dhPool = sync.Pool{New: func() interface{} { return &DataHeader{} }}
func
DataHeaderAlloc
()
*
DataHeader
{
func
DataHeaderAlloc
()
*
DataHeader
{
return
dhPool
.
Get
()
.
(
*
DataHeader
)
return
dhPool
.
Get
()
.
(
*
DataHeader
)
}
}
// Free puts dh back into DataHeader freelist.
// Free puts dh back into DataHeader freelist.
//
//
// Caller must not use dh after call to Free.
// Caller must not use dh after call to Free.
...
...
go/zodb/storage/fs1/filestorage_test.go
View file @
b47715f9
...
@@ -31,8 +31,6 @@ import (
...
@@ -31,8 +31,6 @@ import (
"lab.nexedi.com/kirr/go123/exc"
"lab.nexedi.com/kirr/go123/exc"
)
)
// XXX -> testDbEntry ?
// one database transaction record
// one database transaction record
type
dbEntry
struct
{
type
dbEntry
struct
{
Header
TxnHeader
Header
TxnHeader
...
...
go/zodb/str.go
View file @
b47715f9
...
@@ -52,12 +52,10 @@ func (oid Oid) String() string {
...
@@ -52,12 +52,10 @@ func (oid Oid) String() string {
}
}
func
(
tid
Tid
)
XFmtString
(
b
[]
byte
)
[]
byte
{
func
(
tid
Tid
)
XFmtString
(
b
[]
byte
)
[]
byte
{
// XXX also print "tid:" prefix ?
return
xfmt
.
AppendHex016
(
b
,
uint64
(
tid
))
return
xfmt
.
AppendHex016
(
b
,
uint64
(
tid
))
}
}
func
(
oid
Oid
)
XFmtString
(
b
[]
byte
)
[]
byte
{
func
(
oid
Oid
)
XFmtString
(
b
[]
byte
)
[]
byte
{
// XXX also print "oid:" prefix ?
return
xfmt
.
AppendHex016
(
b
,
uint64
(
oid
))
return
xfmt
.
AppendHex016
(
b
,
uint64
(
oid
))
}
}
...
...
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