diff --git a/src/main/java/org/elasticsearch/action/support/replication/ReplicationType.java b/src/main/java/org/elasticsearch/action/support/replication/ReplicationType.java index 2bd2f07a11a..40aa51afdaa 100644 --- a/src/main/java/org/elasticsearch/action/support/replication/ReplicationType.java +++ b/src/main/java/org/elasticsearch/action/support/replication/ReplicationType.java @@ -56,9 +56,9 @@ public enum ReplicationType { */ public static ReplicationType fromId(byte id) { if (id == 0) { - return ASYNC; - } else if (id == 1) { return SYNC; + } else if (id == 1) { + return ASYNC; } else if (id == 2) { return DEFAULT; } else {