]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools: Add clear-data-digest command to objectstore tool. 29366/head
authorliyichao <liyichao.good@gmail.com>
Wed, 5 Dec 2018 04:22:20 +0000 (12:22 +0800)
committerDavid Zafman <dzafman@redhat.com>
Mon, 1 Jul 2019 05:03:07 +0000 (22:03 -0700)
commitbd6784a011dee7ccfa8ac1821a93b10b5faec62d
treebf83685720d739b1f9a5c215e7d860d24d928915
parentf36ab9c3e67300cb2d0c95d955409a8f450246bb
tools: Add clear-data-digest command to objectstore tool.

There may be a situation where data digest in object info is
inconsistent with that computed from object data, then deep-scrub
will fail even though all three repicas have the same object data.

Fixes: https://tracker.ceph.com/issues/37935
Signed-off-by: Li Yichao <liyichao.good@gmail.com>
(cherry picked from commit da5832b2b49be4ab23f7ffc5ba1ba630168b886f)

Adjustments for luminous:
Add ObjectStore::Sequencer
Use begin() instead of cbegin()
Eliminate use of open_collection()
qa/standalone/special/ceph_objectstore_tool.py
src/tools/ceph_objectstore_tool.cc