compactor: fix error message of Revision compactor

Reorder the parameters so that Noticef can output the error properly.
This commit is contained in:
Iwasaki Yudai 2017-12-11 10:35:16 -08:00
parent 809b0d71a3
commit 06365b6008

View File

@ -82,7 +82,7 @@ func (t *Revision) Run() {
previous = rev
plog.Noticef("Finished auto-compaction at revision %d", rev)
} else {
plog.Noticef("Failed auto-compaction at revision %d (%v)", err, rev)
plog.Noticef("Failed auto-compaction at revision %d (%v)", rev, err)
plog.Noticef("Retry after %v", checkCompactionInterval)
}
}