DiskStoreImpl dsi = getDiskStore(); if (dsi != null && dsi.getOwnedByRegion()) { dsi.destroy();
"DropDiskStore :: found DiskStore " + store); cache.removeDiskStore(store); store.destroy();
@Override public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, IOException { final GemFireTransaction tc = (GemFireTransaction)xact; final LanguageConnectionContext lcc = tc.getLanguageConnectionContext(); DataDictionaryImpl dd = (DataDictionaryImpl)lcc.getDataDictionary(); dd.startWriting(lcc); this.storeName = SharedUtils.SQLToUpperCase(storeName); DiskStoreImpl store = (DiskStoreImpl)Misc.getGemFireCache().findDiskStore( storeName); try { if (store != null) { store.destroy(); } } catch (Exception e) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM, "DropDiskStore :: got Exception", e); } ExecIndexRow keyRow = dd.getExecutionFactory().getIndexableRow(1); keyRow.setColumn(1, new SQLVarchar(storeName)); TabInfoImpl ti = dd .getNonCoreTI(DataDictionaryImpl.SYSDISKSTORES_CATALOG_NUM); ti.deleteRow(tc, keyRow, 0); SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM, "DropDiskStore :: removed DiskStore " + storeName + " from SYS table"); }
@Override public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, IOException { final GemFireTransaction tc = (GemFireTransaction)xact; final LanguageConnectionContext lcc = tc.getLanguageConnectionContext(); DataDictionaryImpl dd = (DataDictionaryImpl)lcc.getDataDictionary(); dd.startWriting(lcc); this.storeName = SharedUtils.SQLToUpperCase(storeName); DiskStoreImpl store = (DiskStoreImpl)Misc.getGemFireCache().findDiskStore( storeName); try { if (store != null) { store.destroy(); } } catch (Exception e) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM, "DropDiskStore :: got Exception", e); } ExecIndexRow keyRow = dd.getExecutionFactory().getIndexableRow(1); keyRow.setColumn(1, new SQLVarchar(storeName)); TabInfoImpl ti = dd .getNonCoreTI(DataDictionaryImpl.SYSDISKSTORES_CATALOG_NUM); ti.deleteRow(tc, keyRow, 0); SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM, "DropDiskStore :: removed DiskStore " + storeName + " from SYS table"); }
@Override public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, IOException { final GemFireTransaction tc = (GemFireTransaction)xact; final LanguageConnectionContext lcc = tc.getLanguageConnectionContext(); DataDictionaryImpl dd = (DataDictionaryImpl)lcc.getDataDictionary(); dd.startWriting(lcc); this.storeName = SharedUtils.SQLToUpperCase(storeName); DiskStoreImpl store = (DiskStoreImpl)Misc.getGemFireCache().findDiskStore( storeName); try { if (store != null) { store.destroy(); } } catch (Exception e) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM, "DropDiskStore :: got Exception", e); } ExecIndexRow keyRow = dd.getExecutionFactory().getIndexableRow(1); keyRow.setColumn(1, new SQLVarchar(storeName)); TabInfoImpl ti = dd .getNonCoreTI(DataDictionaryImpl.SYSDISKSTORES_CATALOG_NUM); ti.deleteRow(tc, keyRow, 0); SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM, "DropDiskStore :: removed DiskStore " + storeName + " from SYS table"); }
"DropDiskStore :: found DiskStore " + store); Misc.getGemFireCache().removeDiskStore(store); store.destroy();
"DropDiskStore :: found DiskStore " + store); Misc.getGemFireCache().removeDiskStore(store); store.destroy();
DiskStoreImpl dsi = getDiskStore(); if (dsi != null && dsi.getOwnedByRegion()) { dsi.destroy();