Skip to content

Commit

Permalink
type_codec: add vector type encoding
Browse files Browse the repository at this point in the history
Co-authored-by: Dawid Pawlik <[email protected]>
  • Loading branch information
janpiotrlakomy and QuerthDP committed Dec 11, 2024
1 parent 8271f54 commit 9c45899
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions transport/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "types/list.hh"
#include "types/set.hh"
#include "types/map.hh"
#include "types/vector.hh"
#include "dht/token-sharding.hh"
#include "service/migration_manager.hh"
#include "service/memory_limiter.hh"
Expand Down Expand Up @@ -1923,6 +1924,11 @@ class type_codec {
}
return;
}
if (type->is_vector()) {
r.write_short(uint16_t(type_id::CUSTOM));
r.write_string(type->name());
return;
}
if (type->is_collection()) {
auto&& ctype = static_cast<const collection_type_impl*>(type.get());
if (ctype->get_kind() == abstract_type::kind::map) {
Expand Down

0 comments on commit 9c45899

Please sign in to comment.