Skip to content

Commit

Permalink
PaddlePaddle#1355 🐛bug: fix cache time null (PaddlePaddle#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
Monkeyman520 authored Feb 20, 2025
1 parent b51a111 commit 7eca48e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Packaging
run: tar -zcvf paddleflow-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz output/
- name: Uploading assets
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: paddleflow-${{ matrix.goos }}-${{ matrix.goarch }}
path: paddleflow-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
3 changes: 2 additions & 1 deletion pkg/fs/client/meta/meta_kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,6 @@ func (m *kvMeta) Symlink(ctx *Context, parent Ino, name string, path string, ino
// todo:: file mode including type and unix permission, add smode to transe
attr.Nlink = 1
attr.Size = uint64(len(path))
insertInodeItem_.attr = *attr
insertInodeItem_.parentIno = parent
insertInodeItem_.fileHandles = 1
insertInodeItem_.name = []byte(name)
Expand Down Expand Up @@ -993,6 +992,8 @@ func (m *kvMeta) Symlink(ctx *Context, parent Ino, name string, path string, ino
attr.Mtimensec = uint32(now.Nanosecond())
attr.Ctime = now.Unix()
attr.Ctimensec = uint32(now.Nanosecond())
// 结构体中是没有指针,默认是深拷贝,等待 attr 赋值完成进行深拷贝
insertInodeItem_.attr = *attr
insertEntryItem_ := &entryItem{
ino: ino,
mode: attr.Mode,
Expand Down

0 comments on commit 7eca48e

Please sign in to comment.