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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
f248b5a9
Commit
f248b5a9
authored
Dec 11, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b1e344c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
zloadrace.py
zloadrace.py
+6
-3
No files found.
zloadrace.py
100644 → 100755
View file @
f248b5a9
...
...
@@ -14,6 +14,7 @@ from persistent import Persistent
from
wendelin.lib.testing
import
TestDB_ZEO
,
TestDB_NEO
from
golang
import
func
,
defer
from
golang
import
sync
,
context
...
...
@@ -31,8 +32,8 @@ def main():
# XXX defer(tdb.teardown)
# two ZODB client storage connections to the same server
zstor1
=
tdb
.
getZODBStorage
()
#
; defer(zstor1.close)
zstor2
=
tdb
.
getZODBStorage
()
#
; defer(zstor2.close)
zstor1
=
tdb
.
getZODBStorage
()
;
defer
(
zstor1
.
close
)
zstor2
=
tdb
.
getZODBStorage
()
;
defer
(
zstor2
.
close
)
db1
=
DB
(
zstor1
)
db2
=
DB
(
zstor2
)
...
...
@@ -41,7 +42,7 @@ def main():
# XXX doc
def
init
():
transaction
.
begin
()
zconn
=
db
.
open
()
zconn
=
db
1
.
open
()
root
=
zconn
.
root
()
root
[
'obj1'
]
=
PInt
(
0
)
...
...
@@ -53,10 +54,12 @@ def main():
def
C1
(
ctx
,
N
):
# XXX
pass
def
C2
(
ctx
,
N
):
# XXX
pass
...
...
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