From 982b5700377b4f8395f66fa7b6f3fed76e3f577f Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Thu, 25 Apr 2013 08:25:31 +0200 Subject: [PATCH] Fix serialization of sync/async replication type --- .../action/support/replication/ReplicationType.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {