From 2a0ece52051bc3b487ff1fc14dd280bc69aa486c Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Mon, 11 Dec 2017 18:18:11 +0100 Subject: [PATCH] mvcc: Allow dereferencing partition_snapshot_row_weakref --- partition_snapshot_row_cursor.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/partition_snapshot_row_cursor.hh b/partition_snapshot_row_cursor.hh index d5afe8e7f4..7b4f5c5dc7 100644 --- a/partition_snapshot_row_cursor.hh +++ b/partition_snapshot_row_cursor.hh @@ -81,6 +81,12 @@ public: } return false; } + rows_entry* operator->() const { + return &*_it; + } + rows_entry& operator*() const { + return *_it; + } }; // Allows iterating over rows of mutation_partition represented by given partition_snapshot.