From a16761dcb4ee689aaa52b7c38db82c981548ec4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dziepak?= Date: Mon, 30 Jan 2017 11:08:50 +0000 Subject: [PATCH] position_in_partition: add feed_hash() --- streamed_mutation.hh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/streamed_mutation.hh b/streamed_mutation.hh index 6150c23197..05be0c0455 100644 --- a/streamed_mutation.hh +++ b/streamed_mutation.hh @@ -313,6 +313,17 @@ public: bool is_clustering_row() const { return _ck && !_bound_weight; } bool is_range_tombstone() const { return _bound_weight; } + template + void feed_hash(Hasher& hasher, const schema& s) const { + ::feed_hash(hasher, _bound_weight); + if (_ck) { + ::feed_hash(hasher, true); + _ck->feed_hash(hasher, s); + } else { + ::feed_hash(hasher, false); + } + } + clustering_key_prefix& key() { return *_ck; }