Asias He
b811eb2ca2
gossip: Convert gms/FailureDetector.java to C++
2015-03-10 16:13:59 +08:00
Asias He
2aaec04bb0
gossip: Import gms/FailureDetector.java
2015-03-10 16:04:24 +08:00
Asias He
3d323bd030
gossip: Return optional for get_endpoint_state_for_endpoint
2015-03-10 16:04:24 +08:00
Asias He
74b872f085
gossip: Convert gms/Gossiper.java to C++
...
Stub only.
2015-03-10 16:04:24 +08:00
Asias He
7e2d1b1fb5
gossip: Import gms/Gossiper.java
2015-03-10 16:04:24 +08:00
Asias He
5ddab29a3c
utils: Convert utils/BoundedStatsDeque.java to C++
2015-03-10 16:04:24 +08:00
Asias He
0ffdd1896f
utils: Import utils/BoundedStatsDeque.java
2015-03-10 15:11:36 +08:00
Asias He
41a20bde12
gossip: Add is_broadcast_address helper for inet_address
2015-03-10 15:11:36 +08:00
Asias He
00e3832daf
gossip: Add inet_address(sstring) constructor
2015-03-10 10:11:33 +08:00
Asias He
5876e5af56
unimplemented: Add casue for GOSSIP
2015-03-10 10:10:58 +08:00
Avi Kivity
e3d1b8b3f2
transport: pipeline requests
...
Return to the read fiber immediately after parsing the request;
write the response after the query is complete, but take care not to
interleave responses by using a _ready_to_respond variable.
2015-03-09 18:13:47 +01:00
Calle Wilund
80b244cc4b
commitlog: fix using wrong segment
...
Commit log segment "finish_and_get_new" should not call "new_segment"
explicitly, since more than one invocation might get there on the same
flush condition (segment full).
Signed-off-by: Calle Wilund <calle@cloudius-systems.com >
2015-03-09 17:54:47 +02:00
Avi Kivity
9ca0873adf
Merge branch 'asias/gossip' of github.com:cloudius-systems/seastar-dev into db
...
More gossip work from Asias.
2015-03-09 15:50:04 +02:00
Asias He
7e8bc7d86b
gossip: Convert gms/IFailureDetector.java to C++
2015-03-09 21:44:16 +08:00
Asias He
986ceb3873
gossip: Import gms/IFailureDetector.java
2015-03-09 21:43:50 +08:00
Asias He
b335e953e7
gossip: Convert gms/IFailureDetectionEventListener.java to C++
2015-03-09 21:43:48 +08:00
Asias He
54a5d636f1
gossip: Import gms/IFailureDetectionEventListener.java
2015-03-09 21:43:26 +08:00
Asias He
fdcc7e0bc1
gossip: Convert gms/IEndpointStateChangeSubscriber.java to C++
2015-03-09 21:43:20 +08:00
Asias He
66d2429ee8
gossip: Import gms/IEndpointStateChangeSubscriber.java
2015-03-09 20:45:20 +08:00
Asias He
30f6f7cd21
gossip: Convert gms/TokenSerializer.java to C++
2015-03-09 20:45:20 +08:00
Asias He
316209b217
gossip: Import gms/TokenSerializer.java
2015-03-09 20:45:20 +08:00
Asias He
3a8e8bca25
gossip: Convert gms/EndpointState.java to C++, #2
2015-03-09 20:45:20 +08:00
Asias He
818136cfd7
gossip: Add "operator<<" for class versioned_value
...
Will be used by class endpoint_state.
2015-03-09 20:45:20 +08:00
Asias He
457c78f6bd
gossip: Convert gms/HeartBeatState.java to C++
2015-03-09 20:45:19 +08:00
Asias He
59cd37cfa2
gossip: Import gms/HeartBeatState.java
2015-03-09 20:45:19 +08:00
Asias He
0839c6ba35
gossip: Convert gms/GossipDigestAck2.java to C++
2015-03-09 20:45:19 +08:00
Asias He
ded6db5a19
gossip: Import gms/GossipDigestAck2.java
2015-03-09 09:32:08 +08:00
Asias He
1313116114
gossip: Convert gms/EndpointState.java to C++
...
Stub only.
2015-03-09 09:32:08 +08:00
Asias He
4ea4fc6687
gossip: Import gms/EndpointState.java
2015-03-09 09:32:08 +08:00
Shlomi Livne
d5b4ec06d6
tests: add commitlog_test
...
Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com >
2015-03-08 17:46:16 +02:00
Nadav Har'El
f4b47b0d70
build: Fix whitespace
...
Fix tabs to spaces in two lines in configure.py
Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com >
2015-03-08 16:10:00 +02:00
Avi Kivity
9b39bd410e
Merge branch 'master' of github.com:cloudius-systems/seastar into db
2015-03-08 15:02:24 +02:00
Avi Kivity
e4b5408bbd
core: improve apply forwarding
...
Currently apply() only works with moveable inputs. Add overloads for
non-moveable inputs (reference and const reference).
2015-03-08 14:58:28 +02:00
Avi Kivity
808ac29cf3
core: mark apply() inline
2015-03-08 14:58:26 +02:00
Shlomi Livne
ee8fa7b07a
Block all signals when reactor is deleted
...
1. Moved all signal handler functions/members into a wrapping class
2. Block all signals on desctuctor call (resetting of signal handler is
not enough since some signals will arive even if we reset signal handler
to SIG_DFL e.g. timer)
Fixes use-after-free when a signal is caught after the reactor is
destroyed.
Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com >
2015-03-08 09:20:32 +02:00
Gleb Natapov
4d286f0504
core: drop superfluous qualifier from then_wrapped
2015-03-06 12:52:11 +02:00
Avi Kivity
11dfbdfaf5
Merge branch 'tgrabiec/futurize' of github.com:cloudius-systems/seastar-dev
...
Unify future callback specialization for callback return values, from
Tomasz.
2015-03-06 12:40:17 +02:00
Tomasz Grabiec
7502f2a3a3
tests: Add test for returning bare values from callbacks
2015-03-06 11:35:56 +01:00
Tomasz Grabiec
af82e23c75
core: Use futurize<> to unify then_wrapped() specializations
2015-03-06 11:35:56 +01:00
Tomasz Grabiec
a232b7e6c5
core: Use futurize<> to unify future::then() specializations
...
As a side benefit, returning non-void non-future is now allowed:
future<int> x() {
return later().then([] {
return 3;
});
}
2015-03-06 11:35:56 +01:00
Tomasz Grabiec
f25d7ac068
core: Add futurize::apply()
...
Invokes given function wrapping the result in a future if necessary.
2015-03-06 11:35:56 +01:00
Tomasz Grabiec
422d642cf4
core: Add futurize::primise_type
2015-03-06 11:35:56 +01:00
Tomasz Grabiec
f5485c667d
core: Move futurize<> to future.hh
2015-03-06 11:35:56 +01:00
Gleb Natapov
5d1b10d97a
core: properly propogate exception in do_until()
...
[avi: use std::move(f).then_wrapped() until patch removing rvalue
qualification from then_wrapped() lands]
2015-03-06 12:12:19 +02:00
Raphael S. Carvalho
41846256d8
tests: fix fileiotest
...
engine() cannot be called before the local_engine was constructed because it
dereferences the pointer local_engine to create a reference.
Consequently, the following error can be seen while running fileiotest:
./core/reactor.hh:854:13: runtime error: reference binding to null pointer of
type 'struct reactor' ASAN:SIGSEGV
Let's switch the test to use app_template.
Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com >
2015-03-06 10:06:16 +02:00
Avi Kivity
5bff24c292
db: constify standard data_types
...
Lest someone accidentally move them away or assign into them.
2015-03-05 22:20:04 +02:00
Tomasz Grabiec
3db3207b85
Merge branch seastar-dev.git 'collections'
...
Collections support from Avi.
2015-03-05 20:25:48 +01:00
Avi Kivity
6126670078
mutation_test: test maps
2015-03-05 20:03:57 +02:00
Avi Kivity
b77a52398f
db: fix merge_cells using wrong column_definition
...
merge_cells() always used the regular column_definition, even when called
for a static row.
Fix by parametrizing it with a method to get the column_definition.
2015-03-05 19:59:59 +02:00
Avi Kivity
6f6b1fdb00
schema: add static_column_at()
...
Parallels regular_column_at().
2015-03-05 19:59:18 +02:00