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
bad3a76c
Commit
bad3a76c
authored
Jul 30, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4585c883
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
go/zodb/connection.go
go/zodb/connection.go
+3
-1
go/zodb/persistent.go
go/zodb/persistent.go
+1
-1
go/zodb/zodbpy.go
go/zodb/zodbpy.go
+3
-2
No files found.
go/zodb/connection.go
View file @
bad3a76c
...
...
@@ -23,7 +23,9 @@ import (
"lab.nexedi.com/kirr/neo/go/zodb/internal/weak"
)
// Connection represents an isolated view of ZODB database. XXX + live application objects.
// Connection represents an isolated application-level view of ZODB database. XXX + live application objects.
//
// The view is represented by IPersistent objects associated with the connection.
//
// The view is representing state of ZODB objects as of `at` transaction.
//
...
...
go/zodb/persistent.go
View file @
bad3a76c
...
...
@@ -437,7 +437,7 @@ type Broken struct {
state
*
mem
.
Buf
}
type
brokenState
Broken
type
brokenState
Broken
// hide state methods from public API
func
(
b
*
brokenState
)
DropState
()
{
b
.
state
.
XRelease
()
...
...
go/zodb/zodbpy.go
View file @
bad3a76c
...
...
@@ -37,8 +37,9 @@ type PyStateful interface {
}
// pySetState decodes raw state as zodb/py serialized stream, and sets decoded
// state on PyStateful obj. It is an error if decoded state has python class
// not as specified.
// state on PyStateful obj.
//
// It is an error if decoded state has python class not as specified.
func
pySetState
(
obj
PyStateful
,
objClass
string
,
state
*
mem
.
Buf
)
error
{
pyclass
,
pystate
,
err
:=
PyData
(
state
.
Data
)
.
Decode
()
if
err
!=
nil
{
...
...
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