Murtadha Hubail has submitted this change and it was merged. Change subject: [NO ISSUE] Remove Redundant Cast ......................................................................
[NO ISSUE] Remove Redundant Cast Change-Id: I5b608d585b6c34c5fa308db52c66d035e0eb29f4 Reviewed-on: https://asterix-gerrit.ics.uci.edu/2140 Sonar-Qube: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Integration-Tests: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Reviewed-by: abdullah alamoudi <bamou...@gmail.com> Reviewed-by: Michael Blow <mb...@apache.org> --- M asterixdb/asterix-common/src/main/java/org/apache/asterix/common/context/DatasetLifecycleManager.java 1 file changed, 1 insertion(+), 2 deletions(-) Approvals: Anon. E. Moose #1000171: No violations found abdullah alamoudi: Looks good to me, but someone else must approve Jenkins: Verified; No violations found; Verified Michael Blow: Looks good to me, approved diff --git a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/context/DatasetLifecycleManager.java b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/context/DatasetLifecycleManager.java index 1e99fb5..fe64d3b 100644 --- a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/context/DatasetLifecycleManager.java +++ b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/context/DatasetLifecycleManager.java @@ -48,7 +48,6 @@ import org.apache.hyracks.storage.am.lsm.common.api.ILSMIndexAccessor; import org.apache.hyracks.storage.am.lsm.common.api.ILSMOperationTracker; import org.apache.hyracks.storage.am.lsm.common.api.IVirtualBufferCache; -import org.apache.hyracks.storage.am.lsm.common.impls.AbstractLSMIndex; import org.apache.hyracks.storage.am.lsm.common.impls.LSMComponentIdGenerator; import org.apache.hyracks.storage.common.IIndex; import org.apache.hyracks.storage.common.ILocalResourceRepository; @@ -363,7 +362,7 @@ for (IndexInfo iInfo : dsr.getIndexes().values()) { AbstractLSMIOOperationCallback ioCallback = (AbstractLSMIOOperationCallback) iInfo.getIndex().getIOOperationCallback(); - if (!(((AbstractLSMIndex) iInfo.getIndex()).isCurrentMutableComponentEmpty() + if (!(iInfo.getIndex().isCurrentMutableComponentEmpty() || ioCallback.hasPendingFlush() || opTracker.isFlushLogCreated() || opTracker.isFlushOnExit())) { long firstLSN = ioCallback.getFirstLSN(); -- To view, visit https://asterix-gerrit.ics.uci.edu/2140 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5b608d585b6c34c5fa308db52c66d035e0eb29f4 Gerrit-PatchSet: 5 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Murtadha Hubail <mhub...@apache.org> Gerrit-Reviewer: Anon. E. Moose #1000171 Gerrit-Reviewer: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Gerrit-Reviewer: Michael Blow <mb...@apache.org> Gerrit-Reviewer: Murtadha Hubail <mhub...@apache.org> Gerrit-Reviewer: abdullah alamoudi <bamou...@gmail.com>