Vlad Zolotarov
ff55b76562
cql3::query_processor: use weak_ptr for passing the prepared statements around
...
Use seastar::checked_ptr<weak_ptr<pepared_statement>> instead of shared_ptr for passing prepared statements around.
This allows an easy tracking and handling of statements invalidation.
This implementation will throw an exception every time an invalidated
statement reference is dereferenced.
Signed-off-by: Vlad Zolotarov <vladz@scylladb.com >
2017-04-12 12:24:03 -04:00
Vlad Zolotarov
7606588267
cql3::query_processor: add cql_stats
...
- Add cql_stats member.
- Pass it to cql3::raw::parsed_statement::prepare() virtual method.
Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com >
2016-11-03 11:48:57 -04:00
Avi Kivity
7bd4b7ca63
cql3: split use_statement into raw and prepared variants
...
Rather than having one class fulfil both roles, have one class per role,
disentangling dependencies.
Message-Id: <1465053407-20931-1-git-send-email-avi@scylladb.com >
2016-06-08 16:48:45 +03:00
Avi Kivity
caf8d4f0e6
cql3: separate parsed_statement and parsed_statment::prepared
...
cql3::statements::parsed_statement
-> cql3::statements::raw::parsed_statement
cql3::statements::parsed_statement::prepared
-> cql3::statements::prepared_statement
Message-Id: <1464609556-3756-2-git-send-email-avi@scylladb.com >
2016-05-31 09:09:10 +03:00
Calle Wilund
3906dc9f0d
cql3::statements: Change check_access to future<> + implement
2016-04-19 11:49:05 +00:00
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
Pekka Enberg
6dbee22d2e
cql3: Move use_statement class implementation to source file
...
Signed-off-by: Pekka Enberg <penberg@scylladb.com >
2015-10-23 16:17:17 +03:00
Pekka Enberg
1890d276b9
cql3: Add depends_on_{keyspace|column_family} helper to cql_statement
...
Signed-off-by: Pekka Enberg <penberg@scylladb.com >
2015-10-15 09:18:52 +03:00
Avi Kivity
d5cf0fb2b1
Add license notices
2015-09-20 10:43:39 +03:00
Paweł Dziepak
6a0d4e3ade
client_state: verify that keyspace exist
...
Fixes #323 .
Signed-off-by: Paweł Dziepak <pdziepak@cloudius-systems.com >
2015-09-10 13:58:48 +03:00
Calle Wilund
e99ffef141
cql_statement: change signature of execute_internal.
...
* Use storage_proxy here as well, even though the execution is
by definition local. (Since some local ops are better done
via SP anyway)
2015-07-06 08:21:15 +02:00
Gleb Natapov
a338407e29
make storage_proxy object distributed
...
storage_proxy holds per cpu state now to track clustering, so it has to
be distributed otherwise smp setup does not work.
2015-06-17 15:14:06 +02:00
Pekka Enberg
4efaccaff6
cql3: Use forward declaration for result_message
...
There's a cyclic dependency between cql3 and transport namespaces when
we introduce prepared statements. The latter pulls
parsed_statement::prepared from the former. Break the cycle by using
a forward delcaration in cql_statement.hh.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-03-18 11:14:40 +02:00