Pekka Enberg
f235479a2c
cql3: Fix term::contains_bind_marker() type signature
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-09 13:00:16 +02:00
Pekka Enberg
381089be09
cql3: Fix missing include in column_identifier.hh
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-09 13:00:16 +02:00
Pekka Enberg
f59e47a5d0
cql3: Fix missing includes in term.hh
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-09 13:00:16 +02:00
Pekka Enberg
3da3de8ab0
cql3: Fix assignment_testable.hh include guard
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-09 13:00:16 +02:00
Pekka Enberg
275caedd8c
db: convert ListType to C++
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-09 13:00:16 +02:00
Pekka Enberg
ec22f9123e
db: Import db/marshal/ListType.java
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-09 13:00:13 +02:00
Pekka Enberg
2bf11ddac5
db: convert CollectionType to C++
...
Minimal conversion to have the type available.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-09 12:26:57 +02:00
Pekka Enberg
c245518948
db: Import db/marshal/CollectionType.java
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-09 11:17:53 +02:00
Avi Kivity
4c59fe6436
xen: ensure _xenstore member is initialized early enough
...
Thanks clang.
2015-01-08 18:44:23 +02:00
Avi Kivity
062f621aa0
net: wrap toeplitz hash initializer in more braces
...
Nagging by clang.
2015-01-08 18:43:49 +02:00
Avi Kivity
0aaea57838
tests: fix missing do in do/while(0) in timertest
...
Thanks clang.
2015-01-08 18:36:51 +02:00
Gleb Natapov
13c1324d45
net: provide some statistics via collectd
...
Provide batching and overall send/received packet stats.
2015-01-08 17:41:26 +02:00
Gleb Natapov
51fb18aba0
net: remove unused variable from virtio
2015-01-08 16:45:01 +02:00
Amnon Heiman
5002f0f10e
README: boost is needed for ubuntu compilation
2015-01-08 16:44:59 +02:00
Takuya ASADA
902b5b00a4
Make pollable_fd::_s as private variable
...
We can use pollable_fd::writeable/readable instead.
Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com >
2015-01-08 12:07:16 +02:00
Pekka Enberg
3b67331e50
cql3: convert VariableSpecifications to C++, take 2
...
This is the second conversion pass over the VariableSpecifications
class. I also had to fix up callers in parsed_statement class.
Note: I did not convert the toString() function as there's no toString()
in the column_specification class so Cassandra is just printing out list
of references here.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-08 11:43:04 +02:00
Gleb Natapov
b824790798
net: move udp_v4 from network_stack into ipv4 class
...
ipv4 class manages tcp and icmp, but for some reason udp is managed by
network_stack. Fix this and make all L4 protocol handling to be the same.
2015-01-08 11:33:19 +02:00
Avi Kivity
65d4969504
build: limit link concurrency
...
The linker can easily overwhelm a desktop, limit linker concurrency to
preserve some interactiveness.
2015-01-08 11:21:04 +02:00
Avi Kivity
c95e452a3a
Merge branch 'directory'
...
Directory listing support, using subscription<sstring> to represent the
stream of file names produced by the directory lister running in parallel
with the directory consumer.
2015-01-08 11:14:52 +02:00
Avi Kivity
4fd5ab936b
tests: add directory_test
...
Lists the current directory, testing open_directory() / list_directory().
2015-01-08 11:09:27 +02:00
Avi Kivity
3be04e7009
reactor: implement open_directory(), list_directory()
...
open_directory() is similar to open_file_dma() with just the O_ flags adjusted.
list_directory() returns a subscription(), so that both the producer and
the consumer can be asynchronous.
2015-01-08 11:09:25 +02:00
Avi Kivity
f26e74b1ff
Merge branch 'takuya/tcp-clientv16' of github.com:cloudius-systems/seastar-dev
...
TCP client, from Takuya.
Reviewed-by: Asias He <asias@cloudius-systems.com >
2015-01-08 10:46:35 +02:00
Takuya ASADA
46d8b24626
Add tcp_client test
...
Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com >
2015-01-08 01:26:36 +09:00
Takuya ASADA
e9e1ed7977
Implement TCP client on native-stack
2015-01-08 01:26:36 +09:00
Takuya ASADA
7b3b9e5a46
Implement TCP client on posix-stack
...
Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com >
2015-01-08 01:26:36 +09:00
Takuya ASADA
b9a2541c7e
Add reactor::connect(), client_socket definition and network stack stub code
...
Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com >
2015-01-08 01:26:36 +09:00
Takuya ASADA
2118fe5a09
Add l4connid::hash()
2015-01-08 01:26:36 +09:00
Takuya ASADA
9c2ca3d6b6
return correct option size when new SYN packet sending
...
Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com >
2015-01-08 01:26:36 +09:00
Takuya ASADA
7730ef29cd
Add readable()/writeable() method on pollable_fd
2015-01-08 01:26:36 +09:00
Takuya ASADA
24820543ff
Add reactor::posix_connect()
...
Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com >
2015-01-08 01:26:30 +09:00
Pekka Enberg
11491423ac
cql3: Use enable_shared_from_this to clean up API
...
Initial conversion introduced a synthetic shared_ptr as the first
parameter. This deviates from Cassandra's API so switch to
enable_shared_from_this instead.
Suggested by Avi.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 17:26:18 +02:00
Pekka Enberg
5d3f65930c
cql3: Remove superfluous "db.h" include
...
There's no such file in the source tree. Fixes build breakage seen by
Jenkins.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 17:26:17 +02:00
Avi Kivity
50d7c8e8b0
Merge branch 'penberg/cql3' of github.com:cloudius-systems/seastar-dev into db
2015-01-07 17:09:46 +02:00
Pekka Enberg
3ca0ed10be
cql3: convert Attributes to C++
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 17:05:29 +02:00
Pekka Enberg
1db158de29
cql3: convert ColumnIdentifier to C++, take 2
...
Minimal constructor conversion to be able to conver the Attributes class
completely.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 17:05:28 +02:00
Pekka Enberg
92c3f1c3a4
cql3: convert ColumnSpecification to C++, take 2
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 17:05:28 +02:00
Pekka Enberg
65f18026b5
cql3: convert Selectable to C++
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 17:05:28 +02:00
Pekka Enberg
56cc7a253a
cql3: Fix term::prepare() type signature
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 17:05:28 +02:00
Pekka Enberg
b3611b205d
db: Add data_type::compose() function
...
It's part of the AbstractType class signature.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 17:05:28 +02:00
Takuya ASADA
d3e83dde8b
Add file_desc::getsockopt()
2015-01-07 23:48:53 +09:00
Takuya ASADA
ff39f8c93e
Initialize _snd.initial/next on tcb constructor
2015-01-07 23:48:41 +09:00
Pekka Enberg
7c38147c07
db: Add data_type::validate() stub
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 16:23:48 +02:00
Pekka Enberg
ca1c54ac7c
db: convert ReversedType to C++
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 16:23:48 +02:00
Pekka Enberg
4984184603
db: import db/marshal/ReversedType.java
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 16:23:33 +02:00
Pekka Enberg
90abbbaef1
db: Fix include in cell_name.hh
...
Fix the following build error:
In file included from ./db/cell.hh:29:0,
from ./db/expiring_cell.hh:26,
from cql3/attributes.hh:31,
from cql3/cql3.cc:33:
./db/composites/cell_name.hh: At global scope:
./db/composites/cell_name.hh:51:36: error: expected class-name before ‘{’ token
class cell_name : public composite {
^
ninja: build stopped: subcommand failed.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-01-07 16:23:33 +02:00
Nadav Har'El
31a982b41e
Convert time (version 1) UUID to C++
...
Convert Cassandra's UUIDGen class, which generates time-dependent UUID,
and parts of the java.util.UUID which I thought we need, to C++.
It is possible I missed some needed features of java.util.UUID that we'll
need to add later.
Also, part of the version-1 UUID is supposed to be node-unique (so that
if two nodes happen to boot at the same time and get a UUID at exactly
the same time, they still get different UUIDs). Cassandra uses for this
a hash function of the IP address, we should use in the future the MAC
address (from Seastar's network stack). But currently we just use 0.
Left a FIXME to fix that.
Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com >
[avi: add to ./configure.py]
2015-01-07 16:13:42 +02:00
Avi Kivity
8101c1f2a6
stream/subscription: fix build error in stream::close()
2015-01-07 15:12:23 +02:00
Asias He
65173589b9
dht: Convert dht/IPartitioner.java to C++
2015-01-07 20:49:57 +08:00
Asias He
0581c0de12
dht: Import dht/IPartitioner.java
2015-01-07 20:44:55 +08:00
Asias He
e145946c97
dht: Convert dht/RingPosition.java to C++
2015-01-07 20:44:54 +08:00