You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2021/07/13 15:28:39 UTC

[cassandra] 01/02: Correct fwd to/from messages for backward compatibility

This is an automated email from the ASF dual-hosted git repository.

brandonwilliams pushed a commit to branch cassandra-4.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git

commit 43b750341e2fd33559353d53d059a0cbc3911cb1
Author: Brandon Williams <br...@apache.org>
AuthorDate: Tue Jul 13 09:37:05 2021 -0500

    Correct fwd to/from messages for backward compatibility
    
    Patch by brandonwilliams, reviewed by aleksey for CASSANDRA-16797
---
 CHANGES.txt                                      | 1 +
 src/java/org/apache/cassandra/net/ParamType.java | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CHANGES.txt b/CHANGES.txt
index d8595ef..48a500c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 4.0.0
+ * Fix fwd to/from headers in DC write forwarding (CASSANDRA-16797)
  * Fix CassandraVersion::compareTo (CASSANDRA-16794)
  * BinLog does not close chronicle queue leaving this to GC to cleanup (CASSANDRA-16774)
 Merged from 3.11:
diff --git a/src/java/org/apache/cassandra/net/ParamType.java b/src/java/org/apache/cassandra/net/ParamType.java
index 6572348..d82689d 100644
--- a/src/java/org/apache/cassandra/net/ParamType.java
+++ b/src/java/org/apache/cassandra/net/ParamType.java
@@ -41,8 +41,8 @@ import static org.apache.cassandra.locator.InetAddressAndPort.Serializer.inetAdd
  */
 public enum ParamType
 {
-    FORWARD_TO          (0, "FORWARD_TO",    ForwardingInfo.serializer),
-    RESPOND_TO          (1, "FORWARD_FROM",  inetAddressAndPortSerializer),
+    FORWARD_TO          (0, "FWD_TO",        ForwardingInfo.serializer),
+    RESPOND_TO          (1, "FWD_FRM",       inetAddressAndPortSerializer),
 
     @Deprecated
     FAILURE_RESPONSE    (2, "FAIL",          LegacyFlag.serializer),

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org