meta.softDelete(desc.parentId, desc.fileName, desc.fileId);
meta.softDelete(desc.parentId, desc.fileName, desc.fileId);
/** {@inheritDoc} */ @Override public GridFuture<?> format() throws GridException { GridUuid id = meta.softDelete(null, null, ROOT_ID); if (id == null) return new GridFinishedFuture<Object>(ggfsCtx.kernalContext()); else { GridFutureAdapter<Object> fut = new GridFutureAdapter<>(ggfsCtx.kernalContext()); GridFutureAdapter<Object> oldFut = delFuts.putIfAbsent(id, fut); if (oldFut != null) return oldFut; else { if (!meta.exists(id)) { // Safety in case response message was received before we put future into collection. fut.onDone(); delFuts.remove(id, fut); } return fut; } } }
/** {@inheritDoc} */ @Override public GridFuture<?> format() throws GridException { GridUuid id = meta.softDelete(null, null, ROOT_ID); if (id == null) return new GridFinishedFuture<Object>(ggfsCtx.kernalContext()); else { GridFutureAdapter<Object> fut = new GridFutureAdapter<>(ggfsCtx.kernalContext()); GridFutureAdapter<Object> oldFut = delFuts.putIfAbsent(id, fut); if (oldFut != null) return oldFut; else { if (!meta.exists(id)) { // Safety in case response message was received before we put future into collection. fut.onDone(); delFuts.remove(id, fut); } return fut; } } }