]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: limit error/warning lines shown during fsck.
authorIgor Fedotov <ifedotov@suse.com>
Mon, 20 Jan 2020 21:00:49 +0000 (00:00 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Thu, 23 Jan 2020 15:57:00 +0000 (18:57 +0300)
commitf16629980d4caeeefe1c81d5c0b313d97b69b2d5
tree843517a6f2b0b345a841eb8d938ac012bb36fb97
parentdb9e6ce17ad0ae17318acecf838befb222486597
os/bluestore: limit error/warning lines shown during fsck.

Some 'expected' fsck falures (e.g. legacy omap records from previous
releases in Octopus) might produce tons of corresponding error/warning log lines.
This is a simple and rough workaround which limits number of printed lines by a
predefined value of 100.
Curretly applied to omap-related errors only.

Known flaw is that limit is applied on per-task basis hence multi-threaded quick-fix will
prooduce up to 100 * <number of fix task> lines instead of 100 which is a bit confusing.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h