Commit 14fd9cd3 authored by Julien Muchembled's avatar Julien Muchembled

TODO: ctl command to truncate DB + hint for better performance

parent 5ce3ad70
...@@ -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.
......
...@@ -189,6 +189,12 @@ class ReadBuffer(object): ...@@ -189,6 +189,12 @@ 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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment