Skip to content

Commit 816920b

Browse files
Revert sync protocol version to 12 until client reset with recovery is fixed (#7624)
1 parent bec09f8 commit 816920b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/realm/sync/protocol.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,14 @@ 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
61-
//
6260
// XX Changes:
6361
// - TBD
6462
//
6563
constexpr int get_current_protocol_version() noexcept
6664
{
6765
// Also update the current protocol version test in flx_sync.cpp when
6866
// updating this value
69-
return 13;
67+
return 12;
7068
}
7169

7270
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
@@ -2583,7 +2583,7 @@ TEST_CASE("flx: writes work without waiting for sync", "[sync][flx][baas]") {
25832583
TEST_CASE("flx: verify websocket protocol number and prefixes", "[sync][protocol]") {
25842584
// Update the expected value whenever the protocol version is updated - this ensures
25852585
// that the current protocol version does not change unexpectedly.
2586-
REQUIRE(13 == sync::get_current_protocol_version());
2586+
REQUIRE(12 == sync::get_current_protocol_version());
25872587
// This was updated in Protocol V8 to use '#' instead of '/' to support the Web SDK
25882588
REQUIRE("com.mongodb.realm-sync#" == sync::get_pbs_websocket_protocol_prefix());
25892589
REQUIRE("com.mongodb.realm-query-sync#" == sync::get_flx_websocket_protocol_prefix());

0 commit comments

Comments
 (0)