Project

General

Profile

Cleanup #18584

osd: improper format for dumpping purged_snaps

Added by Chang Liu about 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
OSD
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

./bin/ceph-objectstore-tool --data-path=./dev/osd1/ --dry-run --op info --pgid 2.4
{
    "pgid": "2.4",
    "last_update": "104'22",
    "last_complete": "104'22",
    "log_tail": "0'0",
    "last_user_version": 8,
    "last_backfill": "MAX",
    "last_backfill_bitwise": 0,
    "purged_snaps": "[]",  # my comment: here should be [], without `"`
    "history": {

code: https://github.com/ceph/ceph/blob/master/src/osd/osd_types.cc#L2854

History

#1 Updated by Chang Liu about 7 years ago

Sorry, issue's type should be a "Cleanup", not a "Bug".

I'm working on this issue.

#2 Updated by Nathan Cutler about 7 years ago

  • Tracker changed from Bug to Cleanup

#3 Updated by Chang Liu almost 7 years ago

 ./bin/ceph-objectstore-tool --data-path=./dev/osd1/ --dry-run --op info --pgid 2.4
{   
    "pgid": "2.4",
    "last_update": "13'8",
    "last_complete": "13'8",
    "log_tail": "0'0",
    "last_user_version": 8,
    "last_backfill": "MAX",
    "last_backfill_bitwise": 0,
    "purged_snaps": [
        "2,2" 
    ],

#5 Updated by Jos Collin almost 7 years ago

  • Status changed from New to Resolved

The PR is merged

Also available in: Atom PDF