Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
neoppod
Commits
03bf302a
Commit
03bf302a
authored
Oct 11, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btree: fix missing u64 oid conversion in deleteTransaction
Also clean up deleteObject.
parent
fe5526cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
neo/storage/database/btree.py
neo/storage/database/btree.py
+4
-6
No files found.
neo/storage/database/btree.py
View file @
03bf302a
...
@@ -411,14 +411,15 @@ class BTreeDatabaseManager(DatabaseManager):
...
@@ -411,14 +411,15 @@ class BTreeDatabaseManager(DatabaseManager):
recycle_subtrees
=
recycle_subtrees
)
recycle_subtrees
=
recycle_subtrees
)
def
deleteTransaction
(
self
,
tid
,
oid_list
=
()):
def
deleteTransaction
(
self
,
tid
,
oid_list
=
()):
tid
=
util
.
u64
(
tid
)
u64
=
util
.
u64
tid
=
u64
(
tid
)
self
.
_popTransactionFromTObj
(
tid
,
False
)
self
.
_popTransactionFromTObj
(
tid
,
False
)
try
:
try
:
del
self
.
_ttrans
[
tid
]
del
self
.
_ttrans
[
tid
]
except
KeyError
:
except
KeyError
:
pass
pass
for
oid
in
oid_list
:
for
oid
in
oid_list
:
self
.
_deleteObject
(
oid
,
serial
=
tid
)
self
.
_deleteObject
(
u64
(
oid
),
tid
)
try
:
try
:
del
self
.
_trans
[
tid
]
del
self
.
_trans
[
tid
]
except
KeyError
:
except
KeyError
:
...
@@ -432,10 +433,7 @@ class BTreeDatabaseManager(DatabaseManager):
...
@@ -432,10 +433,7 @@ class BTreeDatabaseManager(DatabaseManager):
def
deleteObject
(
self
,
oid
,
serial
=
None
):
def
deleteObject
(
self
,
oid
,
serial
=
None
):
u64
=
util
.
u64
u64
=
util
.
u64
oid
=
u64
(
oid
)
self
.
_deleteObject
(
u64
(
oid
),
serial
and
u64
(
serial
))
if
serial
is
not
None
:
serial
=
u64
(
serial
)
self
.
_deleteObject
(
oid
,
serial
=
serial
)
def
_deleteObject
(
self
,
oid
,
serial
=
None
):
def
_deleteObject
(
self
,
oid
,
serial
=
None
):
obj
=
self
.
_obj
obj
=
self
.
_obj
...
...
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