Skip to content

Commit 54f2b22

Browse files
committed
Fixed CMake build for topic and server_restart test
1 parent 0a8c930 commit 54f2b22

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/client/topic/impl/topic.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,15 +576,15 @@ std::vector<ECodec> DeserializeCodecs(const Ydb::Topic::SupportedCodecs& proto)
576576
return codecs;
577577
}
578578

579-
google::protobuf::Map<TProtoStringType, TProtoStringType> SerializeAttributes(const std::map<std::string, std::string>& attributes) {
580-
google::protobuf::Map<TProtoStringType, TProtoStringType> proto;
579+
google::protobuf::Map<TStringType, TStringType> SerializeAttributes(const std::map<std::string, std::string>& attributes) {
580+
google::protobuf::Map<TStringType, TStringType> proto;
581581
for (const auto& [key, value] : attributes) {
582-
proto.emplace(key, value);
582+
proto[key] = value;
583583
}
584584
return proto;
585585
}
586586

587-
std::map<std::string, std::string> DeserializeAttributes(const google::protobuf::Map<TProtoStringType, TProtoStringType>& proto) {
587+
std::map<std::string, std::string> DeserializeAttributes(const google::protobuf::Map<TStringType, TStringType>& proto) {
588588
std::map<std::string, std::string> attributes;
589589
for (const auto& [key, value] : proto) {
590590
attributes.emplace(key, value);

tests/integration/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
add_subdirectory(basic_example_it)
2-
add_subdirectory(bulk_upsert_simple_it)
1+
add_subdirectory(basic_example)
2+
add_subdirectory(bulk_upsert)
3+
add_subdirectory(server_restart)

tests/integration/server_restart/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
add_ydb_test(NAME bulk_upsert_simple_it
1+
add_ydb_test(NAME server_restart
22
SOURCES
33
main.cpp
4-
bulk_upsert.cpp
5-
bulk_upsert.h
64
LINK_LIBRARIES
75
yutil
86
api-grpc

0 commit comments

Comments
 (0)