]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph_objectstore_tool: action_on_all_objects_in_pg to skip pgmeta 54693/head
authorMatan Breizman <mbreizma@redhat.com>
Sun, 26 Nov 2023 14:02:41 +0000 (14:02 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 28 Nov 2023 14:38:05 +0000 (14:38 +0000)
commit2eb963aa2663b2c0bd5b1b13369c84e9ba4209c8
tree8df8e82b0c4de96e389c7cb0858e74ecf69fc0ab
parenta021e73ae82911eef94527f99e0e637244d8dbf2
tools/ceph_objectstore_tool: action_on_all_objects_in_pg to skip pgmeta

See "Error getting attr on" after creating an empty pool:

```
$ ceph-objectstore-tool --data-path ./dev/osd0 --op list
Error getting attr on : 2.0_head,#2:00000000::::head#, (61) No data available
["2.0",{"oid":"","key":"","snapid":-2,"hash":0,"max":0,"pool":2,"namespace":"","max":0}]
```

_action_on_all_objects_in_pg() should skip getting the (non-existing) attributes of pgmeta hobjects.

Note: pgmeta_oid is created at the PG's constructor and is written to disk in init_pg_ondisk()
      without any OI_ATTR.

Fixes: https://tracker.ceph.com/issues/63640
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 6b0a9a580f3376a5db208674a24e4599500b712f)
src/tools/ceph_objectstore_tool.cc