Skip to content

Commit 469d3b3

Browse files
Bump sync protocol version for collections in Mixed (#7702)
1 parent b7e545a commit 469d3b3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/realm/sync/protocol.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,17 @@ namespace sync {
5757
// Server replaces 'downloadable_bytes' (which was always zero prior this version)
5858
// with an estimated progress value (double from 0.0 to 1.0) for flx sessions
5959
//
60+
// 13 Support for syncing collections (lists and dictionaries) in Mixed columns and
61+
// collections of Mixed
62+
//
6063
// XX Changes:
6164
// - TBD
6265
//
6366
constexpr int get_current_protocol_version() noexcept
6467
{
6568
// Also update the current protocol version test in flx_sync.cpp when
6669
// updating this value
67-
return 12;
70+
return 13;
6871
}
6972

7073
constexpr std::string_view get_pbs_websocket_protocol_prefix() noexcept

test/object-store/sync/flx_sync.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2649,7 +2649,7 @@ TEST_CASE("flx: writes work without waiting for sync", "[sync][flx][baas]") {
26492649
TEST_CASE("flx: verify websocket protocol number and prefixes", "[sync][protocol]") {
26502650
// Update the expected value whenever the protocol version is updated - this ensures
26512651
// that the current protocol version does not change unexpectedly.
2652-
REQUIRE(12 == sync::get_current_protocol_version());
2652+
REQUIRE(13 == sync::get_current_protocol_version());
26532653
// This was updated in Protocol V8 to use '#' instead of '/' to support the Web SDK
26542654
REQUIRE("com.mongodb.realm-sync#" == sync::get_pbs_websocket_protocol_prefix());
26552655
REQUIRE("com.mongodb.realm-query-sync#" == sync::get_flx_websocket_protocol_prefix());

0 commit comments

Comments
 (0)