fix version check bug (#4244)

Co-authored-by: gengjun <gengjun@dorisdb.com>
This commit is contained in:
gengjun-git
2020-08-05 21:45:36 +08:00
committed by GitHub
parent 421828d52a
commit a4f3d43e15

View File

@ -515,7 +515,7 @@ public class EditLog {
case OperationType.OP_META_VERSION: {
String versionString = ((Text) journal.getData()).toString();
int version = Integer.parseInt(versionString);
if (MetaContext.get().getMetaVersion() > FeConstants.meta_version) {
if (version > FeConstants.meta_version) {
LOG.error("meta data version is out of date, image: {}. meta: {}."
+ "please update FeConstants.meta_version and restart.",
MetaContext.get().getMetaVersion(), FeConstants.meta_version);