REQ-3540: 容量满了
This commit is contained in:
parent
c0c16c55d2
commit
22b0e54074
@ -19,7 +19,7 @@ public class CopyFileVisitor extends CopyNodeVisitor {
|
||||
public WalkingDecision visit(ValueNode<IndexNode> node) {
|
||||
IndexNode copy = node.getValue();
|
||||
if (copy.isFile()) {
|
||||
FileAttributes fileAttributes = copy.getAttributes().getOrCreateFileAttributes();
|
||||
FileAttributes fileAttributes = copy.getOrCreateFileAttributes();
|
||||
String newOssFileKey = copiedOssFiles.getCopyOssFileKey(fileAttributes.getOssFileKey());
|
||||
fileAttributes.setOssFileKey(newOssFileKey);
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ public class IndexNodeRenameOssFileHandler implements EventHandler, Initializing
|
||||
log.warn("index node is not a file: {}", message.getIndexNodeCode());
|
||||
return;
|
||||
}
|
||||
String ossFileKey = indexNode.getOrCreateAttributes().getOrCreateFileAttributes().getOssFileKey();
|
||||
String ossFileKey = indexNode.getOrCreateFileAttributes().getOssFileKey();
|
||||
if (StringUtils.isBlank(ossFileKey)) {
|
||||
log.warn("try to rename index node oss file ({}) but oss file key not found", indexNode.getCode());
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user