Skip to content

Commit c4cfbee

Browse files
authored
code: remove unused config arg (#6437)
Signed-off-by: swj <[email protected]>
1 parent 5f52fb0 commit c4cfbee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/meta/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import (
3636

3737
// Config for clients.
3838
type Config struct {
39-
Strict bool // update ctime
4039
Retries int
4140
MaxDeletes int
4241
SkipDirNlink int
@@ -58,7 +57,7 @@ type Config struct {
5857
}
5958

6059
func DefaultConf() *Config {
61-
return &Config{Strict: true, Retries: 10, MaxDeletes: 2, Heartbeat: 12 * time.Second, AtimeMode: NoAtime, DirStatFlushPeriod: 1 * time.Second}
60+
return &Config{Retries: 10, MaxDeletes: 2, Heartbeat: 12 * time.Second, AtimeMode: NoAtime, DirStatFlushPeriod: 1 * time.Second}
6261
}
6362

6463
func (c *Config) SelfCheck() {

pkg/meta/sql.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2551,6 +2551,7 @@ func (m *dbMeta) doLink(ctx Context, inode, parent Ino, name string, attr *Attr)
25512551
}
25522552

25532553
func (m *dbMeta) doReaddir(ctx Context, inode Ino, plus uint8, entries *[]*Entry, limit int) syscall.Errno {
2554+
25542555
return errno(m.simpleTxn(ctx, func(s *xorm.Session) error {
25552556
s = s.Table(&edge{})
25562557
if plus != 0 {

0 commit comments

Comments
 (0)