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
Jérome Perrin
neoppod
Commits
14fd9cd3
Commit
14fd9cd3
authored
Jan 13, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: ctl command to truncate DB + hint for better performance
parent
5ce3ad70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
TODO
TODO
+3
-0
neo/lib/util.py
neo/lib/util.py
+7
-1
No files found.
TODO
View file @
14fd9cd3
...
@@ -158,6 +158,9 @@ RC - Review output of pylint (CODE)
...
@@ -158,6 +158,9 @@ RC - Review output of pylint (CODE)
Admin
Admin
- Make admin node able to monitor multiple clusters simultaneously
- Make admin node able to monitor multiple clusters simultaneously
- Send notifications (ie: mail) when a storage or master node is lost
- Send notifications (ie: mail) when a storage or master node is lost
- Add ctl command to truncate DB at arbitrary TID. 'Truncate' message
can be reused. There should also be a way to list last transactions,
like fstail for FileStorage.
Tests
Tests
- Use another mock library that is eggified and maintained.
- Use another mock library that is eggified and maintained.
...
...
neo/lib/util.py
View file @
14fd9cd3
...
@@ -189,7 +189,13 @@ class ReadBuffer(object):
...
@@ -189,7 +189,13 @@ class ReadBuffer(object):
Implementation of a lazy buffer. Main purpose if to reduce useless
Implementation of a lazy buffer. Main purpose if to reduce useless
copies of data by storing chunks and join them only when the requested
copies of data by storing chunks and join them only when the requested
size is available.
size is available.
"""
TODO: For better performance, use:
- socket.recv_into (64kiB blocks)
- struct.unpack_from
- and a circular buffer of dynamic size (initial size:
twice the length passed to socket.recv_into ?)
"""
def
__init__
(
self
):
def
__init__
(
self
):
self
.
size
=
0
self
.
size
=
0
...
...
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