For the compiler's sake:
tools/ceph_objectstore_tool.cc:2547:15: warning: ‘r’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: Zhiqiang Wang <wonzhq@hotmail.com>
(cherry picked from commit
c3e1466b46076f133b62f98e2c0b712bdde0e119)
if (op == "list-lost" || op == "fix-lost") {
unsigned LIST_AT_A_TIME = 100;
unsigned scanned = 0;
- int r;
+ int r = 0;
vector<coll_t> colls_to_check;
if (pgidstr.length()) {
colls_to_check.push_back(coll_t(pgid));