It may happen that the authoritative object
such that auth.size != be_get_ondisk_size(auth_oi.size),
in that case, clarify the error report.
Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
if (error != CLEAN)
errorstream << ", ";
error = SHALLOW_ERROR;
+ bool known = auth.size == be_get_ondisk_size(auth_oi.size);
errorstream << "size " << candidate.size
- << " != known size " << auth.size;
+ << " != "
+ << (known ? "known" : "best guess")
+ << " size " << auth.size;
}
for (map<string,bufferptr>::const_iterator i = auth.attrs.begin();
i != auth.attrs.end();