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
5c46bf8e
Commit
5c46bf8e
authored
Mar 11, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9817744d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
go/zodb/connection.go
go/zodb/connection.go
+16
-5
go/zodb/persistent.go
go/zodb/persistent.go
+0
-2
No files found.
go/zodb/connection.go
View file @
5c46bf8e
...
...
@@ -152,17 +152,28 @@ const (
// state eviction until discard is really needed.
PCachePinObject
PCachePolicy
=
1
<<
iota
// don't discard object state.
// don't keep object in the cache.
//
// The object will be discarded from the cache completely as soon as it
// is semantically valid to do so.
PCacheDiscardObject
PCacheOmitObject
// keep object state in the cache.
//
// Object's state is kept XXX ...
// Note: object can go awai (PCachePinObject)
//
// Note: on invalidation, state of invalidated objects is discarded
// unconditionally.
PCacheKeepState
// d
ata access is non-temporal
.
// d
on't keep object state
.
//
// Object's state is used once and then won't be used for a long time.
// Don't pollute cache with state of this object.
PCacheNonTemporal
// XXX PCacheForgetState? DropState?
// Data access is non-temporal. Object's state is used once and then
// won't be used for a long time. Don't pollute cache with state of
// this object.
PCacheOmitState
)
// ----------------------------------------
...
...
go/zodb/persistent.go
View file @
5c46bf8e
...
...
@@ -264,8 +264,6 @@ func (obj *Persistent) PDeactivate() {
var
cp
PCachePolicy
if
cc
:=
obj
.
jar
.
cache
.
control
;
cc
!=
nil
{
// XXX catch inconsistency in PCacheClassify result
// XXX locking for .control ?
cp
=
cc
.
PCacheClassify
(
obj
.
instance
)
}
...
...
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