Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
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
Stefane Fermigier
neo
Commits
7539342c
Commit
7539342c
authored
Oct 28, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client.app: Simplify code a bit.
parent
df0e157f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
neo/client/app.py
neo/client/app.py
+4
-5
No files found.
neo/client/app.py
View file @
7539342c
...
@@ -517,8 +517,6 @@ class Application(object):
...
@@ -517,8 +517,6 @@ class Application(object):
checksum
=
ZERO_HASH
checksum
=
ZERO_HASH
else
:
else
:
assert
data_serial
is
None
assert
data_serial
is
None
compression
=
self
.
compress
compressed_data
=
data
size
=
len
(
data
)
size
=
len
(
data
)
if
self
.
compress
:
if
self
.
compress
:
compressed_data
=
compress
(
data
)
compressed_data
=
compress
(
data
)
...
@@ -527,6 +525,9 @@ class Application(object):
...
@@ -527,6 +525,9 @@ class Application(object):
compression
=
0
compression
=
0
else
:
else
:
compression
=
1
compression
=
1
else
:
compression
=
0
compressed_data
=
data
checksum
=
makeChecksum
(
compressed_data
)
checksum
=
makeChecksum
(
compressed_data
)
txn_context
[
'data_size'
]
+=
size
txn_context
[
'data_size'
]
+=
size
on_timeout
=
OnTimeout
(
self
.
onStoreTimeout
,
txn_context
,
oid
)
on_timeout
=
OnTimeout
(
self
.
onStoreTimeout
,
txn_context
,
oid
)
...
@@ -534,9 +535,7 @@ class Application(object):
...
@@ -534,9 +535,7 @@ class Application(object):
txn_context
[
'data_dict'
][
oid
]
=
data
txn_context
[
'data_dict'
][
oid
]
=
data
# Store data on each node
# Store data on each node
txn_context
[
'object_stored_counter_dict'
][
oid
]
=
{}
txn_context
[
'object_stored_counter_dict'
][
oid
]
=
{}
object_base_serial_dict
=
txn_context
[
'object_base_serial_dict'
]
txn_context
[
'object_base_serial_dict'
].
setdefault
(
oid
,
serial
)
if
oid
not
in
object_base_serial_dict
:
object_base_serial_dict
[
oid
]
=
serial
txn_context
[
'object_serial_dict'
][
oid
]
=
serial
txn_context
[
'object_serial_dict'
][
oid
]
=
serial
queue
=
txn_context
[
'queue'
]
queue
=
txn_context
[
'queue'
]
involved_nodes
=
txn_context
[
'involved_nodes'
]
involved_nodes
=
txn_context
[
'involved_nodes'
]
...
...
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