@Override public void processMessage(Object[] params, DistributedMember sender) throws StandardException { String diskStoreName = (String)params[0]; SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_SYS_PROCEDURES, "GfxdSystemProcedureMessage: fsyncing diskstore " + diskStoreName); GemFireCacheImpl cache = GemFireCacheImpl.getExisting(); if (diskStoreName != null) { DiskStoreImpl diskStore = cache.findDiskStore(diskStoreName); if (diskStore == null) { // check for upper-case name diskStore = cache.findDiskStore(SharedUtils .SQLToUpperCase(diskStoreName)); if (diskStore == null) { throw StandardException.newException( SQLState.LANG_OBJECT_DOES_NOT_EXIST, "FSYNC DISKSTORE", diskStoreName); } } diskStore.flushAndSync(); } else { // fsync all disk stores for (DiskStoreImpl diskStore : cache .listDiskStoresIncludingRegionOwned()) { diskStore.flushAndSync(); } } }
@Override public void processMessage(Object[] params, DistributedMember sender) throws StandardException { String diskStoreName = (String)params[0]; SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_SYS_PROCEDURES, "GfxdSystemProcedureMessage: fsyncing diskstore " + diskStoreName); GemFireCacheImpl cache = GemFireCacheImpl.getExisting(); if (diskStoreName != null) { DiskStoreImpl diskStore = cache.findDiskStore(diskStoreName); if (diskStore == null) { // check for upper-case name diskStore = cache.findDiskStore(SharedUtils .SQLToUpperCase(diskStoreName)); if (diskStore == null) { throw StandardException.newException( SQLState.LANG_OBJECT_DOES_NOT_EXIST, "FSYNC DISKSTORE", diskStoreName); } } diskStore.flushAndSync(); } else { // fsync all disk stores for (DiskStoreImpl diskStore : cache .listDiskStoresIncludingRegionOwned()) { diskStore.flushAndSync(); } } }
@Override public void processMessage(Object[] params, DistributedMember sender) throws StandardException { String diskStoreName = (String)params[0]; SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_SYS_PROCEDURES, "GfxdSystemProcedureMessage: fsyncing diskstore " + diskStoreName); GemFireCacheImpl cache = GemFireCacheImpl.getExisting(); if (diskStoreName != null) { DiskStoreImpl diskStore = cache.findDiskStore(diskStoreName); if (diskStore == null) { // check for upper-case name diskStore = cache.findDiskStore(SharedUtils .SQLToUpperCase(diskStoreName)); if (diskStore == null) { throw StandardException.newException( SQLState.LANG_OBJECT_DOES_NOT_EXIST, "FSYNC DISKSTORE", diskStoreName); } } diskStore.flushAndSync(); } else { // fsync all disk stores for (DiskStoreImpl diskStore : cache .listDiskStoresIncludingRegionOwned()) { diskStore.flushAndSync(); } } }
+ "write krfCreate and irfCreate records for: " + this); this.parent.flushAndSync(true); DiskInitFile initFile = getParent().getDiskInitFile(); initFile.krfCreate(this.oplogId);