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
cdd85527
Commit
cdd85527
authored
Feb 05, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ded591a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
go/zodb/persistent_api.go
go/zodb/persistent_api.go
+5
-3
go/zodb/zodb.go
go/zodb/zodb.go
+2
-2
No files found.
go/zodb/persistent_api.go
View file @
cdd85527
...
...
@@ -88,9 +88,11 @@ type IPersistent interface {
// PModify marks in-RAM object state as modified.
//
// It informs persistency layer that object's data was changed and so
// its state needs to be either saved back into database on transaction
// commit, or discarded on transaction abort.
// It informs persistency layer that object's data is going to be
// changed and so its state will need to be either saved back into
// database on transaction commit, or discarded on transaction abort.
//
// PModify must be called before object data is modified.
//
// The object must be already activated.
//PModify() TODO
...
...
go/zodb/zodb.go
View file @
cdd85527
...
...
@@ -82,8 +82,8 @@
//
// obj.xxx // use object.
// if ... {
// obj.
xxx++ // chang
e object.
// obj.
PModify() // let persistency layer know we modified
the object.
// obj.
PModify() // let persistency layer know we are going to modifiy th
e object.
// obj.
xxx++ // change
the object.
// }
//
// // tell persistency layer we no longer need obj's in-RAM data to be present.
...
...
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