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
5c46bf8e
Commit
5c46bf8e
authored
Mar 11, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9817744d
Changes
2
Hide 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