b5cdf6b476
Summary: In a bunch of places `TypedValue` was used where `PropertyValue` should be. A lot of times it was only because `TypedValue` serialization code could be reused for `PropertyValue`, only without providing callbacks for `VERTEX`, `EDGE` and `PATH`. So first I wrote separate serialization code for `PropertyValue` and put it into storage folder. Then I fixed all the places where `TypedValue` was incorrectly used instead of `PropertyValue`. I also disabled implicit `TypedValue` to `PropertyValue` conversion in hopes of preventing misuse in the future. After that, I wrote code for `VertexAccessor` and `EdgeAccessor` serialization and put it into `storage` folder because it was almost duplicated in distributed BFS and pull produce RPC messages. On the sender side, some subset of records (old or new or both) is serialized, and on the reciever side, records are deserialized and immediately put into transaction cache. Then I rewrote the `TypedValue` serialization functions (`SaveCapnpTypedValue` and `LoadCapnpTypedValue`) to not take callbacks for `VERTEX`, `EDGE` and `PATH`, but use accessor serialization functions instead. That means that any code that wants to use `TypedValue` serialization must hold a reference to `GraphDbAccessor` and `DataManager`, so that should make clients reconsider if they really want to use `TypedValue` instead of `PropertyValue`. Reviewers: teon.banek, msantl Reviewed By: teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1598 |
||
---|---|---|
.. | ||
snapshot_generation | ||
antlr_parser.cpp | ||
antlr_sigsegv.cpp | ||
antlr_tree_pretty_print.cpp | ||
binomial.cpp | ||
bolt_client.cpp | ||
card_fraud_generate_snapshot.cpp | ||
card_fraud_local.cpp | ||
CMakeLists.txt | ||
distributed_common.hpp | ||
distributed_repl.cpp | ||
endinan.cpp | ||
generate_snapshot.cpp | ||
graph_500_generate_snapshot.cpp | ||
kvstore_console.cpp | ||
query_hash.cpp | ||
query_planner.cpp | ||
repl.cpp | ||
single_query.cpp | ||
sl_position_and_count.cpp | ||
snapshot_explorer.cpp | ||
ssl_client.cpp | ||
ssl_server.cpp | ||
stripped_timing.cpp | ||
test_antlr_sigsegv | ||
wal_explorer.cpp | ||
xorshift.cpp |