Showing
1 changed file
with
2 additions
and
1 deletions
@@ -31,7 +31,8 @@ public class ProductIndexRebuildListener implements IYohoIndexRebuildListener, I | @@ -31,7 +31,8 @@ public class ProductIndexRebuildListener implements IYohoIndexRebuildListener, I | ||
31 | 31 | ||
32 | @Override | 32 | @Override |
33 | public void afterRebuild(Exception exception) { | 33 | public void afterRebuild(Exception exception) { |
34 | - if (exception != null) { | 34 | + if (exception == null) { |
35 | + // 没有异常时才更新到zk | ||
35 | productVectorFeatureLogicService.publishGenerateDate(); | 36 | productVectorFeatureLogicService.publishGenerateDate(); |
36 | } | 37 | } |
37 | } | 38 | } |
-
Please register or login to post a comment