Pekka Enberg
38a54df863
Fix pre-ScyllaDB copyright statements
...
People keep tripping over the old copyrights and copy-pasting them to
new files. Search and replace "Cloudius Systems" with "ScyllaDB".
Message-Id: <1460013664-25966-1-git-send-email-penberg@scylladb.com >
2016-04-08 08:12:47 +03:00
Asias He
28ccd866e2
streaming: Move ranges in stream_plan
...
The ranges are not used afterwards. We can move instead of copy.
Message-Id: <1458540564-34277-1-git-send-email-asias@scylladb.com >
2016-03-21 10:10:09 +01:00
Asias He
ed3da7b04c
streaming: Drop flush_tables option for add_transfer_ranges
...
We do not stream sstable files. No need to flush it.
2016-01-29 16:31:07 +08:00
Asias He
face74a8f2
streaming: Rename stream_result_future::init to ::init_sending_side
...
So we have:
- init_sending_side
called when the node initiates a stream_session
- init_receiving_side
called when the node is a receiver of a stream_session initiated by a peer
2016-01-25 11:38:13 +08:00
Asias He
dc94c5e42e
streaming: Rename get_or_create_next_session to get_or_create_session
...
There is only one session for each peer in stream_coordinator.
2016-01-25 11:38:13 +08:00
Asias He
bdd6a69af7
streaming: Drop unused parameters
...
- int connections_per_host
Scylla does not create connections per stream_session, instead it uses
rpc, thus connections_per_host is not relevant to scylla.
- bool keep_ss_table_level
- int repaired_at
Scylla does not stream sstable files. They are not relevant to scylla.
2016-01-25 11:38:13 +08:00
Asias He
89b79d44de
streaming: Get rid of the _connecting_ parameter
...
messaging_service will use private ip address automatically to connect a
peer node if possible. There is no need for the upper level like
streaming to worry about it. Drop it simplifies things a bit.
2015-12-31 11:25:08 +01:00
Asias He
d51227ad9c
streaming: Remove transfer_files
...
It is never used.
2015-12-21 14:42:47 +08:00
Asias He
cadf8b1484
streaming: Handle stream_plan with no range added
...
If no ranges for neither sending nor receiving are added for the stream
plan, the stream plan is empty. Return a ready future immediately.
2015-11-10 15:39:34 +08:00
Avi Kivity
d5cf0fb2b1
Add license notices
2015-09-20 10:43:39 +03:00
Asias He
59cae82470
streaming: Make stream_plan::execute return a future
...
Returns a ready future if the stream_plan completes successfully, or a
failed future otherwise.
2015-07-31 16:27:55 +08:00
Asias He
d1720ffed1
streaming: Hold a shared_ptr inside stream_plan
2015-07-14 20:41:14 +08:00
Asias He
14ae9e66ae
streaming: Use shared_ptr to track back to stream_session
...
I tried our lw_shared_ptr, the compiler complained endless usage of
incomplete type stream_session. I can not include stream_session.hh
everywhere due to circular dependency.
For now, I'm using std::shared_ptr which works fine.
2015-07-14 20:41:14 +08:00
Asias He
ad3692f666
streaming: Implement stream_session::add_transfer_ranges
...
Given keyspace names, ranges and column_families names, figure out
mutation_readers to transfer.
2015-07-09 15:52:27 +08:00
Asias He
7ec2ee6b86
streaming: Add stream_plan::listeners
2015-06-30 16:55:30 +08:00
Asias He
6f0994349a
streaming: Add stream_plan::execute
2015-06-30 16:47:25 +08:00
Asias He
abf24b3bfa
streaming: Add flush_before_transfer to stream_plan
2015-06-30 15:38:18 +08:00
Asias He
794c65e58c
streaming: Complete transfer_ranges and request_ranges in stream_plan
2015-06-26 08:31:28 +08:00
Asias He
a4235ebc13
streaming: Implement transfer_files
2015-06-26 08:31:28 +08:00
Asias He
9e8512a783
streaming: Convert StreamPlan.java to C++
2015-06-18 23:02:31 +08:00