Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
d7ff6655
Commit
d7ff6655
authored
6 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bdc59b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
bigfile/file_zodb.py
bigfile/file_zodb.py
+10
-1
No files found.
bigfile/file_zodb.py
View file @
d7ff6655
...
...
@@ -497,7 +497,16 @@ class ZBigFile(LivePersistent):
blkchanged
=
zblk
.
setblkdata
(
buf
)
if
blkchanged
:
zblk
.
_p_changed
=
True
# if zblk was already in DB: _p_state -> CHANGED
# if zblk was already in DB: _p_state -> CHANGED.
# do this unconditionally even e.g. for ZBlk1 for which only ZData inside changed:
#
# We cannot avoid committing ZBlk in all cases, because it is used to signal
# other DB clients that a ZBlk needs to be invalidated and this way associated
# fileh pages are invalidated too.
#
# This cannot work via ZData, because ZData don't have back-pointer to
# ZBlk1 or to corresponding zfile.
zblk
.
_p_changed
=
True
zblk
.
bindzfile
(
self
,
blk
)
...
...
This diff is collapsed.
Click to expand it.
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