Skip to content

Commit 403f5d6

Browse files
Merge pull request ceph#65403 from MaxKellermann/Formatter__split
common/Formatter: move {JSON,Table,XML}Formatter to separate files Reviewed-by: Adam Emerson <[email protected]> Reviewed-by: Ilya Dryomov <[email protected]> Tested-by: anrao19
2 parents 7cf33c4 + 3ab70dd commit 403f5d6

File tree

84 files changed

+1355
-1170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1355
-1170
lines changed

src/ceph_mon.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
#include "common/ceph_argparse.h"
3737
#include "common/pick_address.h"
38+
#include "common/JSONFormatter.h"
3839
#include "common/Throttle.h"
3940
#include "common/Timer.h"
4041
#include "common/errno.h"

src/common/AsyncReserver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifndef ASYNC_RESERVER_H
1616
#define ASYNC_RESERVER_H
1717

18-
#include "common/Formatter.h"
18+
#include "common/JSONFormatter.h"
1919
#include "common/ceph_context.h"
2020
#include "common/ceph_mutex.h"
2121
#include "include/Context.h"

src/common/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ set(common_srcs
2929
FixedCDC.cc
3030
Formatter.cc
3131
Graylog.cc
32+
JSONFormatter.cc
3233
HTMLFormatter.cc
3334
HeartbeatMap.cc
3435
LogClient.cc
@@ -39,12 +40,14 @@ set(common_srcs
3940
Readahead.cc
4041
RefCountedObj.cc
4142
SloppyCRCMap.cc
43+
TableFormatter.cc
4244
Thread.cc
4345
Throttle.cc
4446
Timer.cc
4547
TracepointProvider.cc
4648
TrackedOp.cc
4749
WorkQueue.cc
50+
XMLFormatter.cc
4851
admin_socket.cc
4952
admin_socket_client.cc
5053
assert.cc

0 commit comments

Comments
 (0)