Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
df13013f
Commit
df13013f
authored
Nov 18, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure we pass text to note
parent
4438aef4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/ZEO/tests/Cache.py
src/ZEO/tests/Cache.py
+1
-1
src/ZEO/tests/InvalidationTests.py
src/ZEO/tests/InvalidationTests.py
+3
-3
No files found.
src/ZEO/tests/Cache.py
View file @
df13013f
...
@@ -35,7 +35,7 @@ class TransUndoStorageWithCache:
...
@@ -35,7 +35,7 @@ class TransUndoStorageWithCache:
# Now start an undo transaction
# Now start an undo transaction
t
=
TransactionMetaData
()
t
=
TransactionMetaData
()
t
.
note
(
'undo1'
)
t
.
note
(
u
'undo1'
)
oids
=
self
.
_begin_undos_vote
(
t
,
tid
)
oids
=
self
.
_begin_undos_vote
(
t
,
tid
)
# Make sure this doesn't load invalid data into the cache
# Make sure this doesn't load invalid data into the cache
...
...
src/ZEO/tests/InvalidationTests.py
View file @
df13013f
...
@@ -83,7 +83,7 @@ class StressTask:
...
@@ -83,7 +83,7 @@ class StressTask:
def
commit
(
self
):
def
commit
(
self
):
cn
=
self
.
cn
cn
=
self
.
cn
key
=
self
.
startnum
key
=
self
.
startnum
self
.
tm
.
get
().
note
(
"add key %s"
%
key
)
self
.
tm
.
get
().
note
(
u
"add key %s"
%
key
)
try
:
try
:
self
.
tm
.
get
().
commit
()
self
.
tm
.
get
().
commit
()
except
ConflictError
as
msg
:
except
ConflictError
as
msg
:
...
@@ -155,7 +155,7 @@ class StressThread(FailableThread):
...
@@ -155,7 +155,7 @@ class StressThread(FailableThread):
while
not
self
.
stop
.
isSet
():
while
not
self
.
stop
.
isSet
():
try
:
try
:
tree
[
key
]
=
self
.
threadnum
tree
[
key
]
=
self
.
threadnum
tm
.
get
().
note
(
"add key %s"
%
key
)
tm
.
get
().
note
(
u
"add key %s"
%
key
)
tm
.
commit
()
tm
.
commit
()
self
.
commitdict
[
self
]
=
1
self
.
commitdict
[
self
]
=
1
if
self
.
sleep
:
if
self
.
sleep
:
...
@@ -218,7 +218,7 @@ class LargeUpdatesThread(FailableThread):
...
@@ -218,7 +218,7 @@ class LargeUpdatesThread(FailableThread):
break
break
else
:
else
:
# print("%d set #%d" % (self.threadnum, len(keys)))
# print("%d set #%d" % (self.threadnum, len(keys)))
transaction
.
get
().
note
(
"keys %s"
%
", "
.
join
(
map
(
str
,
keys
)))
transaction
.
get
().
note
(
u
"keys %s"
%
", "
.
join
(
map
(
str
,
keys
)))
try
:
try
:
transaction
.
commit
()
transaction
.
commit
()
self
.
commitdict
[
self
]
=
1
self
.
commitdict
[
self
]
=
1
...
...
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