Skip to content

修复cloudtrail 同步文件夹重名的问题;修复inode重复问题;修复cloudtrail同步文件不断全量追加问题 - #503

Merged
wonderflow merged 1 commit into
qiniu:masterfrom
wonderflow:fixdata
May 24, 2018

Conversation

@wonderflow

Copy link
Copy Markdown
Contributor

Fixes [issue number]

Changes

  • feature1
  • feature2
  • fixbug1
  • fixbug2

Reviewers

  • @[someone] please review
  • @[someotherone] please review

Wiki Changes

  • options1...
  • options2...

Checklist

  • Rebased/mergable
  • Tests pass
  • Wiki updated

@wonderflow wonderflow changed the title fix inode 修复cloudtrail 同步文件夹重名的问题;修复inode重复问题 May 24, 2018
@wonderflow wonderflow changed the title 修复cloudtrail 同步文件夹重名的问题;修复inode重复问题 修复cloudtrail 同步文件夹重名的问题;修复inode重复问题;修复cloudtrail同步文件不断全量追加问题 May 24, 2018
Comment thread logkit_test.go Outdated
return
default:
log.Info("test output log ", i)
//log.Info("test output log ", i)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

删了?

@redHJ

redHJ commented May 24, 2018

Copy link
Copy Markdown
Collaborator

lgtm

@unknwon unknwon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有个小建议,修复多个问题时建议单独 commit,然后发起一个 PR 包含所有 commits,方便单独回滚和 review

Comment thread utils/os/utils_unix_test.go Outdated

var uid uint64

func BenchmarkTestIdentyfi(b *testing.B) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo 吗?BenchmarkTestIdentify,Line 16 也是

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是个小测试

Comment thread reader/cloudtrail.go Outdated
w := bufio.NewWriter(f)
for path := range files {
w.WriteString(filepath.Base(path))
basename := filepath.Base(path)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里 basename 并没有二次利用并且 filepath.Base 所表达的意思也非常清晰,是不是有点没必要?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好

@wonderflow
wonderflow merged commit 87fb2bc into qiniu:master May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants