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
d5d3842c
Commit
d5d3842c
authored
Sep 30, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8e1f48ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
wcfs/todo.dot
wcfs/todo.dot
+4
-4
wcfs/todo.svg
wcfs/todo.svg
+4
-4
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+5
-4
No files found.
wcfs/todo.dot
View file @
d5d3842c
...
...
@@ -27,11 +27,11 @@ digraph {
nowcfs
[
label
=
"!wcfs mode"
]
ZODB_go_inv
[
label
=
"ZODB/go\ninvalidations"
]
Btree_read
[
label
=
"BTree read"
]
ZBlk_read
[
label
=
"ZBigFile / ZBlk* read"
]
ZODB_read
[
label
=
"ZODB deserialize object"
]
Btree_read
[
label
=
"BTree read"
,
style
=
filled
fillcolor
=
lightyellow
]
ZBlk_read
[
label
=
"ZBigFile / ZBlk* read"
,
style
=
filled
fillcolor
=
lightyellow
]
ZODB_read
[
label
=
"ZODB deserialize object"
,
style
=
filled
fillcolor
=
lightyellow
]
ZODB_binary
[
label
=
"Adapt to zodbpickle.binary"
]
;
ogorek_persref
[
label
=
"ogórek:\npersistent references"
,
style
=
filled
fillcolor
=
grey95
]
;
ogorek_persref
[
label
=
"ogórek:\npersistent references"
,
style
=
filled
fillcolor
=
lightyellow
]
;
Sinvtree
[
label
=
"server: inv. tree"
]
δ
R
[
label
=
"δR encoding"
]
...
...
wcfs/todo.svg
View file @
d5d3842c
...
...
@@ -87,7 +87,7 @@
<!-- Btree_read -->
<g
id=
"node7"
class=
"node"
>
<title>
Btree_read
</title>
<ellipse
fill=
"
none
"
stroke=
"#000000"
cx=
"136.2405"
cy=
"-188.6102"
rx=
"50.0912"
ry=
"18"
/>
<ellipse
fill=
"
#ffffe0
"
stroke=
"#000000"
cx=
"136.2405"
cy=
"-188.6102"
rx=
"50.0912"
ry=
"18"
/>
<text
text-anchor=
"middle"
x=
"136.2405"
y=
"-184.9102"
font-family=
"Times,serif"
font-size=
"14.00"
fill=
"#000000"
>
BTree read
</text>
</g>
<!-- wcfs_simple->Btree_read -->
...
...
@@ -99,7 +99,7 @@
<!-- ZBlk_read -->
<g
id=
"node8"
class=
"node"
>
<title>
ZBlk_read
</title>
<ellipse
fill=
"
none
"
stroke=
"#000000"
cx=
"294.2405"
cy=
"-188.6102"
rx=
"89.8845"
ry=
"18"
/>
<ellipse
fill=
"
#ffffe0
"
stroke=
"#000000"
cx=
"294.2405"
cy=
"-188.6102"
rx=
"89.8845"
ry=
"18"
/>
<text
text-anchor=
"middle"
x=
"294.2405"
y=
"-184.9102"
font-family=
"Times,serif"
font-size=
"14.00"
fill=
"#000000"
>
ZBigFile / ZBlk* read
</text>
</g>
<!-- wcfs_simple->ZBlk_read -->
...
...
@@ -111,7 +111,7 @@
<!-- ZODB_read -->
<g
id=
"node13"
class=
"node"
>
<title>
ZODB_read
</title>
<ellipse
fill=
"
none
"
stroke=
"#000000"
cx=
"215.2405"
cy=
"-107.7401"
rx=
"98.5829"
ry=
"18"
/>
<ellipse
fill=
"
#ffffe0
"
stroke=
"#000000"
cx=
"215.2405"
cy=
"-107.7401"
rx=
"98.5829"
ry=
"18"
/>
<text
text-anchor=
"middle"
x=
"215.2405"
y=
"-104.0401"
font-family=
"Times,serif"
font-size=
"14.00"
fill=
"#000000"
>
ZODB deserialize object
</text>
</g>
<!-- Btree_read->ZODB_read -->
...
...
@@ -189,7 +189,7 @@
<!-- ogorek_persref -->
<g
id=
"node15"
class=
"node"
>
<title>
ogorek_persref
</title>
<ellipse
fill=
"#f
2f2f2
"
stroke=
"#000000"
cx=
"323.2405"
cy=
"-26.8701"
rx=
"90.5193"
ry=
"26.7407"
/>
<ellipse
fill=
"#f
fffe0
"
stroke=
"#000000"
cx=
"323.2405"
cy=
"-26.8701"
rx=
"90.5193"
ry=
"26.7407"
/>
<text
text-anchor=
"middle"
x=
"323.2405"
y=
"-30.6701"
font-family=
"Times,serif"
font-size=
"14.00"
fill=
"#000000"
>
ogórek:
</text>
<text
text-anchor=
"middle"
x=
"323.2405"
y=
"-15.6701"
font-family=
"Times,serif"
font-size=
"14.00"
fill=
"#000000"
>
persistent references
</text>
</g>
...
...
wcfs/wcfs_test.py
View file @
d5d3842c
...
...
@@ -17,6 +17,7 @@
#
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
"""test wcfs filesystem from outside as python client process"""
from
wendelin.lib.testing
import
getTestDB
from
wendelin.bigfile.file_zodb
import
ZBigFile
...
...
@@ -66,8 +67,8 @@ def readfile(path):
with
open
(
path
)
as
f
:
return
f
.
read
()
# ttime converts tid to transaction commit time.
def
ttime
(
tid
):
# t
id
time converts tid to transaction commit time.
def
t
id
time
(
tid
):
return
TimeStamp
(
tid
).
timeTime
()
...
...
@@ -126,7 +127,7 @@ def test_bigfile_empty():
transaction
.
commit
()
tid2
=
last
.
_p_serial
assert
t
time
(
tid2
)
>
t
time
(
tid1
)
assert
t
idtime
(
tid2
)
>
tid
time
(
tid1
)
wc
=
wcfs
.
join
(
testzurl
,
autostart
=
True
)
...
...
@@ -146,7 +147,7 @@ def test_bigfile_empty():
os.mkdir(fpath)
st = os.stat(fpath + "/head/data")
assert st.st_size == 0
assert st.st_mtime == ttime(tid1)
assert st.st_mtime == t
id
time(tid1)
assert readfile(fpath + "/head/at") == 'txn2'
# XXX head/at = last txn of whole db
...
...
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