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
cdd85527
Commit
cdd85527
authored
Feb 05, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ded591a9
Changes
2
Show 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