filer: option to create file only if it is new, O_EXCL
This commit is contained in:
@@ -107,7 +107,7 @@ func (fs *FilerServer) moveSelfEntry(ctx context.Context, oldParent filer2.FullP
|
||||
Attr: entry.Attr,
|
||||
Chunks: entry.Chunks,
|
||||
}
|
||||
createErr := fs.filer.CreateEntry(ctx, newEntry)
|
||||
createErr := fs.filer.CreateEntry(ctx, newEntry, false)
|
||||
if createErr != nil {
|
||||
return createErr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user