From 78278c11a63d8abb697c37a0d990dc5b6e08396f Mon Sep 17 00:00:00 2001 From: Matthew Oliver Date: 2024年7月24日 16:16:17 +1000 Subject: [PATCH] account info: Add --sync/-s option The container-info cli already supports the --sync/-s option to view incoming and outgoing syncs from the db. Account works exactly the same way. And hey be might want to interrogate who an account has been syncing with. So it should have the same option. This patch adds the same option to account_main parser: $ swift-account-info -s Path: /a2 Account: a2 Deleted: False Account Hash: c1e207026da71a9237c5d9e206b9ec59 Metadata: Created at: 2024年07月24日T06:08:28.760490 (1721801308.76049) Put Timestamp: 2024年07月24日T06:08:28.743650 (1721801308.74365) Delete Timestamp: 1970年01月01日T00:00:00.000000 (0) Status Timestamp: 2024年07月24日T06:08:28.743650 (1721801308.74365) Container Count: 10 Object Count: 100 Bytes Used: 880 Chexor: 0673fe17a762662d74e8d3ad93e0785b UUID: 705ac602-5e85-49ef-92a4-3082d40cad4f-sdb3 ... Incoming Syncs: Sync Point Remote ID Updated At 10 285bbaae-90da-409a-9533-f0d113764e44-sdb4 2024年07月24日T06:10:34.000000 (1721801434) 11 80c45862-dcd3-4ffe-9659-91851276d244-sdb2 2024年07月24日T06:10:35.000000 (1721801435) Outgoing Syncs: Sync Point Remote ID Updated At ... Change-Id: I1aa96e97281421c69cb75ea24ce427c20c4c615e --- swift/cli/info.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swift/cli/info.py b/swift/cli/info.py index 1a9fabc886..6c4952ef99 100644 --- a/swift/cli/info.py +++ b/swift/cli/info.py @@ -804,6 +804,9 @@ def account_main(): parser.add_option( '--drop-prefixes', default=False, action="store_true", help="When outputting metadata, drop the per-section common prefixes") + parser.add_option( + '--sync', '-s', default=False, action="store_true", + help="Output the contents of the incoming/outging sync tables") options, args = parser.parse_args()

AltStyle によって変換されたページ (->オリジナル) /