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
1f8d5d1c
Commit
1f8d5d1c
authored
Dec 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4c272bf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+6
-1
No files found.
bigfile/_file_zodb.pyx
View file @
1f8d5d1c
# -*- coding: utf-8 -*-
# Wendelin.bigfile | BigFile ZODB backend
# Wendelin.bigfile |
WCFS part of
BigFile ZODB backend
# Copyright (C) 2014-2019 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
...
...
@@ -53,11 +53,14 @@ cdef extern from *:
from
wcfs.internal
cimport
_wcfs
as
wcfs
from
golang
cimport
nil
from
ZODB.utils
import
u64
# helper for ZBigFile - just redirect loadblk/storeblk back
# (because it is not possible to inherit from both Persistent and BigFile at
# the same time - see below)
cdef
class
_ZBigFile
(
BigFile
):
cdef
object
zself
# reference to ZBigFile
cdef
wcfs
.
Oid
foid
# = .zself._p_oid
cdef
wcfs
.
Conn
wconn
# WCFS connection XXX -> zconn instead ? XXX wconn is shared between files
# XXX Cython does not allow __new__ nor to change arguments passed to __cinit__ / __init__
...
...
@@ -65,6 +68,8 @@ cdef class _ZBigFile(BigFile):
def
_new
(
zself
,
blksize
):
cdef
_ZBigFile
obj
=
_ZBigFile
.
__new__
(
_ZBigFile
,
blksize
)
obj
.
zself
=
zself
obj
.
foid
=
-
1
# Note: zself._p_oid could be yet None for newly created ZBigFile
obj
.
wconn
=
nil
# XXX
return
obj
def
__dealloc__
(
_ZBigFile
zf
):
...
...
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