|
This works in 6.0 and so this is a regression.
repro
db.system.buckets.ts.find().pretty();
|
{
|
"_id" : ObjectId("64dbfc68c6d9d3ff812b93bf"),
|
"control" : {
|
"version" : 1,
|
"min" : {
|
"_id" : ObjectId("64dbfca0aa174f07b8426a52"),
|
"time" : ISODate("2023-08-15T22:30:00Z"),
|
"f" : 3
|
},
|
"max" : {
|
"_id" : ObjectId("64dbfca0aa174f07b8426a52"),
|
"time" : ISODate("2023-08-15T22:30:56.812Z"),
|
"f" : 3
|
}
|
},
|
"meta" : 3,
|
"data" : {
|
"f" : {
|
"0" : 3
|
},
|
"time" : {
|
"0" : ISODate("2023-08-15T22:30:56.812Z")
|
},
|
"_id" : {
|
"0" : ObjectId("64dbfca0aa174f07b8426a52")
|
}
|
}
|
}
|
> db.runCommand({findAndModify: "system.buckets.ts", query: {_id: ObjectId("64dbfc68c6d9d3ff812b93bf")}, remove: true});
|
{ "lastErrorObject" : { "n" : 0 }, "value" : null, "ok" : 1 }
|
|