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
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
...
@@ -44,7 +44,7 @@ runtime/HACKING.md
-> go-slab
-> 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:
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
...
@@ -94,8 +94,7 @@ EOF
pushd
src/lab.nexedi.com/kirr
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
test
-d
neo
||
git clone
-o
kirr
-b
t https://lab.nexedi.com/kirr/neo.git neo
# XXX t is temp
cd
neo
cd
neo
pip
install
-e
.
pip
install
-e
.[admin,client,ctl,master,storage-sqlite,storage-mysqldb]
pip
install
mysqlclient
# XXX better ^^^ `pip install .` pick this up
popd
popd
go get
-v
lab.nexedi.com/kirr/neo/go/...
go get
-v
lab.nexedi.com/kirr/neo/go/...
...
@@ -314,7 +313,7 @@ datadir = $neosql/data
...
@@ -314,7 +313,7 @@ datadir = $neosql/data
log_error =
$log
/mdb.log
log_error =
$log
/mdb.log
# the following comes from
# 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< ----
# ---- 8< ----
# kirr: disabled
# kirr: disabled
...
...
go/neo/t/zhash.go
View file @
c9f9181a
...
@@ -42,6 +42,7 @@ import (
...
@@ -42,6 +42,7 @@ import (
"lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/neo/go/zodb"
_
"lab.nexedi.com/kirr/neo/go/zodb/wks"
_
"lab.nexedi.com/kirr/neo/go/zodb/wks"
"github.com/pkg/errors"
"github.com/pkg/profile"
"github.com/pkg/profile"
)
)
...
@@ -173,13 +174,13 @@ loop:
...
@@ -173,13 +174,13 @@ loop:
prefetchBlk
(
ctx
,
xid
)
prefetchBlk
(
ctx
,
xid
)
}
}
buf
,
_
,
err
:=
stor
.
Load
(
ctx
,
xid
)
buf
,
_
,
err
:=
stor
.
Load
(
ctx
,
xid
)
switch
err
.
(
type
)
{
if
err
!=
nil
{
case
nil
:
switch
errors
.
Cause
(
err
)
.
(
type
)
{
// ok
case
*
zodb
.
NoObjectError
:
case
*
zodb
.
ErrOidMissing
:
break
loop
break
loop
default
:
default
:
return
err
return
err
}
}
}
h
.
Write
(
buf
.
Data
)
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