Fix serialization of sync/async replication type
This commit is contained in:
parent
dd12e0b86c
commit
982b570037
|
@ -56,9 +56,9 @@ public enum ReplicationType {
|
||||||
*/
|
*/
|
||||||
public static ReplicationType fromId(byte id) {
|
public static ReplicationType fromId(byte id) {
|
||||||
if (id == 0) {
|
if (id == 0) {
|
||||||
return ASYNC;
|
|
||||||
} else if (id == 1) {
|
|
||||||
return SYNC;
|
return SYNC;
|
||||||
|
} else if (id == 1) {
|
||||||
|
return ASYNC;
|
||||||
} else if (id == 2) {
|
} else if (id == 2) {
|
||||||
return DEFAULT;
|
return DEFAULT;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue