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()