]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd, mds: fix the "heap" admin cmd printing always to error stream
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 17 Aug 2022 12:44:42 +0000 (12:44 +0000)
committerPrashant D <pdhange@redhat.com>
Thu, 15 Sep 2022 00:18:50 +0000 (20:18 -0400)
commit2da821d537c9cdfd146d6b085da983e8943afc87
tree9dea95922af5df32bdc7ca5c87cf4f120cc4a93a
parent735163890af555f8241630c7142344880a7d35fc
osd, mds: fix the "heap" admin cmd printing always to error stream

Before the patch `ceph::osd_cmds::heap()` was confusing
the concepts of _stderr_ and _stdout_. This  was the direct
cause of the differences in output between `ceph tell` and
`ceph daeamon`.

Thanks to Laura Flores who made the extremely useful observation
noted in https://tracker.ceph.com/issues/57119#note-3.

Fixes: https://tracker.ceph.com/issues/57119
Resolves: rhbz#2119101

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit 94436475c4c9a11a94dd21c619c9ae0014ac393d)
src/mds/MDSDaemon.cc
src/osd/OSD.cc