drop Protect Indexes level in close method of protectIndexes
@@ -48,7 +48,10 @@ abstract class FSsTobeAddedback implements AutoCloseable {
/**
* does an add back if needed
*/
- public void close() { addback();}
+ public void close() {
+ addback();
+ ((FSsTobeAddedbackMultiple) this).cas.dropProtectIndexesLevel();
+ }
protected void logPart(FSIndexRepository view) {
System.out.format("%,d tobeReindexed: view: %s", removes.incrementAndGet(), view);
@@ -208,7 +211,7 @@ abstract class FSsTobeAddedback implements AutoCloseable {
}
}
clear();
- cas.dropProtectIndexesLevel();
+// cas.dropProtectIndexesLevel(); // all callers of addback do what's needed, don't do it here 6/2020 MIS
}
@Override
