REQ-3540: 容量满了

This commit is contained in:
yanglin 2025-03-19 17:39:00 +08:00
parent c0c16c55d2
commit 22b0e54074
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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;