cql3: fix update_parameters prefetched rows type
We may be required to work on multiple rows (IN (row_key_1, row_key_2)) so use a query::result for prefetched rows.
This commit is contained in:
@@ -35,8 +35,12 @@ namespace cql3 {
|
||||
*/
|
||||
class update_parameters final {
|
||||
public:
|
||||
using prefetched_rows_type = std::experimental::optional<
|
||||
std::unordered_map<partition_key, row, partition_key::hashing, partition_key::equality>>;
|
||||
struct prefetch_data {
|
||||
query::partition_slice slice;
|
||||
query::result result;
|
||||
};
|
||||
// Note: value (mutation) only required to contain the rows we are interested in
|
||||
using prefetched_rows_type = std::experimental::optional<prefetch_data>;
|
||||
private:
|
||||
const gc_clock::duration _ttl;
|
||||
const prefetched_rows_type _prefetched; // For operation that require a read-before-write
|
||||
|
||||
Reference in New Issue
Block a user