You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2020/08/05 13:45:48 UTC

[incubator-doris] branch master updated: fix version check bug (#4244)

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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new a4f3d43  fix version check bug (#4244)
a4f3d43 is described below

commit a4f3d43e1599683a6d058d5996dfd7a601912ea9
Author: gengjun-git <54...@users.noreply.github.com>
AuthorDate: Wed Aug 5 21:45:36 2020 +0800

    fix version check bug (#4244)
    
    Co-authored-by: gengjun <ge...@dorisdb.com>
---
 fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java b/fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java
index d7a8ecf..027c7f1 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/persist/EditLog.java
@@ -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);


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