"snapset_corrupted",
"info_missing",
"info_corrupted",
- "snapset_mismatch",
+ "snapset_error",
"headless",
"size_mismatch",
"extra_clones",
},
{
"errors": [
- "snapset_mismatch"
+ "snapset_error"
],
"snap": "head",
"locator": "",
clones.push_back(snap);
}
-void inconsistent_snapset_wrapper::set_snapset_mismatch()
+void inconsistent_snapset_wrapper::set_snapset_error()
{
- errors |= inc_snapset_t::SNAP_MISMATCH;
+ errors |= inc_snapset_t::SNAP_ERROR;
}
void inconsistent_snapset_wrapper::set_size_mismatch()
// Clones that are there
void set_clone(snapid_t);
// the snapset is not consistent with itself
- void set_snapset_mismatch();
+ void set_snapset_error();
void set_size_mismatch();
void encode(bufferlist& bl) const;
SNAPSET_MISSING = 1 << 0,
SNAPSET_CORRUPTED = 1 << 1,
CLONE_MISSING = 1 << 2,
- SNAP_MISMATCH = 1 << 3,
+ SNAP_ERROR = 1 << 3,
HEAD_MISMATCH = 1 << 4, // Unused
HEADLESS_CLONE = 1 << 5,
SIZE_MISMATCH = 1 << 6,
bool clone_missing() const {
return errors & CLONE_MISSING;
}
- bool snapset_mismatch() const {
- return errors & SNAP_MISMATCH;
+ bool snapset_mismatch() const { // Compatibility
+ return errors & SNAP_ERROR;
+ }
+ bool snapset_error() const {
+ return errors & SNAP_ERROR;
}
bool head_mismatch() const { // Compatibility
return false;
osd->clog->error() << mode << " " << info.pgid << " " << soid
<< " snaps.seq not set";
++scrubber.shallow_errors;
- head_error.set_snapset_mismatch();
+ head_error.set_snapset_error();
}
}
}
f.dump_string("error", "info_missing");
if (inc.info_corrupted())
f.dump_string("error", "info_corrupted");
- if (inc.snapset_mismatch())
- f.dump_string("error", "snapset_mismatch");
+ if (inc.snapset_error())
+ f.dump_string("error", "snapset_error");
if (inc.headless())
f.dump_string("error", "headless");
if (inc.size_mismatch())