Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
c9f9181a
Commit
c9f9181a
authored
Feb 01, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
385d813a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
go/NOTES-go
go/NOTES-go
+1
-1
go/neo/t/neotest
go/neo/t/neotest
+2
-3
go/neo/t/zhash.go
go/neo/t/zhash.go
+8
-7
No files found.
go/NOTES-go
View file @
c9f9181a
...
...
@@ -44,7 +44,7 @@ runtime/HACKING.md
-> go-slab
- interfaces conversion in hot codepaths are costly:
- interfaces conversion in
very
hot codepaths are costly:
e.g. having r as io.ReadSeeker and converting it to io.Reader e.g. this way:
...
...
go/neo/t/neotest
View file @
c9f9181a
...
...
@@ -94,8 +94,7 @@ EOF
pushd
src/lab.nexedi.com/kirr
test
-d
neo
||
git clone
-o
kirr
-b
t https://lab.nexedi.com/kirr/neo.git neo
# XXX t is temp
cd
neo
pip
install
-e
.
pip
install
mysqlclient
# XXX better ^^^ `pip install .` pick this up
pip
install
-e
.[admin,client,ctl,master,storage-sqlite,storage-mysqldb]
popd
go get
-v
lab.nexedi.com/kirr/neo/go/...
...
...
@@ -314,7 +313,7 @@ datadir = $neosql/data
log_error =
$log
/mdb.log
# the following comes from
# https://lab.nexedi.com/nexedi/slapos/blob/
master
/software/neoppod/my.cnf.in#L18
# https://lab.nexedi.com/nexedi/slapos/blob/
bd197876
/software/neoppod/my.cnf.in#L18
# ---- 8< ----
# kirr: disabled
...
...
go/neo/t/zhash.go
View file @
c9f9181a
...
...
@@ -42,6 +42,7 @@ import (
"lab.nexedi.com/kirr/neo/go/zodb"
_
"lab.nexedi.com/kirr/neo/go/zodb/wks"
"github.com/pkg/errors"
"github.com/pkg/profile"
)
...
...
@@ -173,13 +174,13 @@ loop:
prefetchBlk
(
ctx
,
xid
)
}
buf
,
_
,
err
:=
stor
.
Load
(
ctx
,
xid
)
switch
err
.
(
type
)
{
case
nil
:
// ok
case
*
zodb
.
ErrOidMissing
:
break
loop
default
:
return
err
if
err
!=
nil
{
switch
errors
.
Cause
(
err
)
.
(
type
)
{
case
*
zodb
.
NoObjectError
:
break
loop
default
:
return
err
}
}
h
.
Write
(
buf
.
Data
)
...
...
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