Skip to content

Commit

Permalink
Merge pull request #476 from gholt/hum-653
Browse files Browse the repository at this point in the history
HUM-653 Autocreate success when already created; typos
  • Loading branch information
corystone authored Mar 28, 2018
2 parents 4449fa0 + 9504d13 commit d287713
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion accountserver/sqlite_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ func sqliteCreateAccount(accountFile string, account string, putTimestamp string
defer lock.Close()

if fs.Exists(accountFile) {
return errors.New("Account exists!")
return nil
}

if metadata == nil {
Expand Down
2 changes: 1 addition & 1 deletion containerserver/sqlite_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ func sqliteCreateContainer(containerFile string, account string, container strin
defer lock.Close()

if fs.Exists(containerFile) {
return errors.New("Container exists!")
return nil
}

if metadata == nil {
Expand Down
2 changes: 1 addition & 1 deletion objectserver/auditor.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (a *Auditor) statsReport() {
zap.String("Object audit", a.auditorType),
zap.String("Since", a.lastLog.Format(time.ANSIC)),
zap.Int64("Locally passed", a.passes),
zap.Int64("Locally quarantied", a.quarantines),
zap.Int64("Locally quarantined", a.quarantines),
zap.Int64("Locally errored", a.errors),
zap.Float64("files/sec", frate),
zap.Float64("bytes/sec", brate),
Expand Down
2 changes: 1 addition & 1 deletion objectserver/auditor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func TestStatReport(t *testing.T) {
Context: []zapcore.Field{zap.String("Object audit", ""),
zap.String("Since", "Tue May 2 05:48:19 2017"),
zap.Int64("Locally passed", 120),
zap.Int64("Locally quarantied", 17),
zap.Int64("Locally quarantined", 17),
zap.Int64("Locally errored", 41),
zap.Float64("files/sec", 1),
zap.Float64("bytes/sec", 2),
Expand Down

0 comments on commit d287713

Please sign in to comment.