Remove Unnecessary Flush on Index Drop

Change-Id: I2e41b5d0aee13cb3b2d3a23f064c35d28837da10
Reviewed-on: https://asterix-gerrit.ics.uci.edu/804
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: abdullah alamoudi <bamousaa@gmail.com>
Reviewed-by: Young-Seok Kim <kisskys@gmail.com>
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 c5f6915..84317ea 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
@@ -168,10 +168,6 @@
             }
         }
 
-        // Flush and wait for it to finish, it is separated from the above wait so they don't deadlock each other.
-        // TODO: Find a better way to do this.
-        flushAndWaitForIO(dsInfo, iInfo);
-
         if (iInfo.isOpen) {
             ILSMOperationTracker indexOpTracker = iInfo.index.getOperationTracker();
             synchronized (indexOpTracker) {