Skip to content

Commit 1694b8a

Browse files
committed
common/io_exerciser: Reorder lines in RadosIo send_command functions
Signed-off-by: Jon Bailey <[email protected]>
1 parent fe4a614 commit 1694b8a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/common/io_exerciser/RadosIo.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ template <typename S>
1616
int send_osd_command(int osd, S& s, librados::Rados& rados, const char* name,
1717
ceph::buffer::list& inbl, ceph::buffer::list* outbl,
1818
Formatter* f) {
19-
std::ostringstream oss;
2019
encode_json(name, s, f);
20+
21+
std::ostringstream oss;
2122
f->flush(oss);
2223
int rc = rados.osd_command(osd, oss.str(), inbl, outbl, nullptr);
2324
return rc;
@@ -27,8 +28,9 @@ template <typename S>
2728
int send_mon_command(S& s, librados::Rados& rados, const char* name,
2829
ceph::buffer::list& inbl, ceph::buffer::list* outbl,
2930
Formatter* f) {
30-
std::ostringstream oss;
3131
encode_json(name, s, f);
32+
33+
std::ostringstream oss;
3234
f->flush(oss);
3335
int rc = rados.mon_command(oss.str(), inbl, outbl, nullptr);
3436
return rc;

0 commit comments

Comments
 (0)