File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1185,9 +1185,11 @@ struct PGLog : DoutPrefixProvider {
11851185 if (objiter->second ->is_update () ||
11861186 (missing.may_include_deletes && objiter->second ->is_delete ())) {
11871187 if (ec_optimizations_enabled) {
1188- // relax the assert for partial writes - missing may be newer than the
1189- // most recent log entry
1190- ceph_assert (missing.is_missing (hoid) &&
1188+ // relax the assert for partial writes. The log may not contain any
1189+ // updates for this object, in which case the object will not be in
1190+ // the missing list. If it is in the missing list, then the need version
1191+ // had better be higher or equal to the log version
1192+ ceph_assert (!missing.is_missing (hoid) ||
11911193 missing.get_items ().at (hoid).need >= objiter->second ->version );
11921194 } else {
11931195 ceph_assert (missing.is_missing (hoid) &&
You can’t perform that action at this time.
0 commit comments