From: haoyixing Date: Wed, 17 Mar 2021 07:25:21 +0000 (+0000) Subject: os/FileStore: fix sync_pause_max_lat which should not be inced X-Git-Tag: v17.1.0~2471^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2b2d1228ad7cb41dca800f2ca40e07dd9f406e64;p=ceph.git os/FileStore: fix sync_pause_max_lat which should not be inced Max lat of sync pause should be set when greater value comes, not inced to it. Signed-off-by: haoyixing --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index dc304659b1801..4324b37038cb0 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -4271,7 +4271,7 @@ void FileStore::sync_entry() dout(10) << __FUNC__ << ": commit took " << lat << ", interval was " << dur << dendl; utime_t max_pause_lat = logger->tget(l_filestore_sync_pause_max_lat); if (max_pause_lat < utime_t{dur - lat}) { - logger->tinc(l_filestore_sync_pause_max_lat, dur - lat); + logger->tset(l_filestore_sync_pause_max_lat, utime_t{dur - lat}); } logger->inc(l_filestore_commitcycle);