Commit b47715f9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e80dcbde
? 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)
......
...@@ -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.
......
...@@ -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
......
...@@ -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))
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment