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
6db06b18
Commit
6db06b18
authored
Jan 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c7c12d30
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
12 deletions
+5
-12
go/zodb/persistent.go
go/zodb/persistent.go
+0
-7
go/zodb/pydata_test.go
go/zodb/pydata_test.go
+1
-1
go/zodb/storage/fs1/index_test.go
go/zodb/storage/fs1/index_test.go
+1
-1
go/zodb/zodb.go
go/zodb/zodb.go
+3
-3
No files found.
go/zodb/persistent.go
View file @
6db06b18
...
...
@@ -437,7 +437,6 @@ func newGhost(class string, oid Oid, jar *Connection) IPersistent {
var
xpobj
reflect
.
Value
// *typ
zc
:=
classTab
[
class
]
if
zc
==
nil
{
//return nil
zc
=
brokenZClass
xpobj
=
reflect
.
ValueOf
(
&
Broken
{
class
:
class
})
}
else
{
...
...
@@ -494,12 +493,6 @@ func (b *brokenState) SetState(state *mem.Buf) error {
return
nil
}
// XXX how to print zodb.Broken("BTrees.IOBTree.IOBTree"), but not long noise for types that don't define GoString?
// XXX -> zodb.ClassOf
// func (b *Broken) GoString() string {
// return fmt.Sprintf("&zodb.Broken(%q)", b.class)
// }
// brokenZClass is used for Persistent.zclass for Broken objects.
var
brokenZClass
=
&
zclass
{
class
:
""
,
...
...
go/zodb/pydata_test.go
View file @
6db06b18
// Copyright (C) 2016-201
8
Nexedi SA and Contributors.
// Copyright (C) 2016-201
9
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
...
...
go/zodb/storage/fs1/index_test.go
View file @
6db06b18
...
...
@@ -293,7 +293,7 @@ var haveZODBPy = false
var
workRoot
string
func
TestMain
(
m
*
testing
.
M
)
{
// check whether we have zodb/py XXX + zodbtools
// check whether we have zodb/py XXX + zodbtools
-> needPy(modv)
cmd
:=
exec
.
Command
(
"python2"
,
"-c"
,
"import ZODB"
)
err
:=
cmd
.
Run
()
if
err
==
nil
{
...
...
go/zodb/zodb.go
View file @
6db06b18
// Copyright (C) 2016-201
8
Nexedi SA and Contributors.
// Copyright (C) 2016-201
9
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -431,8 +431,8 @@ type Committer interface {
// CommitEvent is event describing one observed database commit.
type
CommitEvent
struct
{
Tid
Tid
Changev
[]
Oid
// XXX name
Tid
Tid
// ID of committed transaction
Changev
[]
Oid
// ID of objects changed by committed transaction
}
// Watcher allows to be notified of changes to database.
...
...
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