Skip to content

Commit

Permalink
usrloc: Improve previous commit
Browse files Browse the repository at this point in the history
Make the package update even more smooth, so v4 nodes accept v5 BIN traffic.
  • Loading branch information
liviuchircu committed Feb 4, 2025
1 parent 343f452 commit 5878ec9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/usrloc/ul_cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,32 +933,32 @@ void receive_binary_packets(bin_packet_t *pkt)

switch (pkt->type) {
case REPL_URECORD_INSERT:
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V4, "usrloc aor-ins packet");
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V5, "usrloc aor-ins packet");
rc = receive_urecord_insert(pkt);
break;

case REPL_URECORD_DELETE:
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V4, "usrloc aor-del packet");
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V5, "usrloc aor-del packet");
rc = receive_urecord_delete(pkt);
break;

case REPL_UCONTACT_INSERT:
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V4, "usrloc ct-ins packet");
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V5, "usrloc ct-ins packet");
rc = receive_ucontact_insert(pkt);
break;

case REPL_UCONTACT_UPDATE:
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V4, "usrloc ct-upd packet");
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V5, "usrloc ct-upd packet");
rc = receive_ucontact_update(pkt);
break;

case REPL_UCONTACT_DELETE:
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V4, "usrloc ct-del packet");
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V5, "usrloc ct-del packet");
rc = receive_ucontact_delete(pkt);
break;

case SYNC_PACKET_TYPE:
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V4, "usrloc sync packet");
_ensure_bin_version2(pkt, UL_BIN_V2, UL_BIN_V5, "usrloc sync packet");
rc = receive_sync_packet(pkt);
break;

Expand Down

0 comments on commit 5878ec9

Please sign in to comment.