Skip to content

Commit 59969c2

Browse files
authored
PBM-1296: PBM fails on PITR restore when timeseries collection was created during oplog slicing (#1012)
* Enable using recreated UUID with TimeSeries view: PBM recreates UUID for the time series collection. This fix uses the same recreated UUID when adding the view for the time series collection.
1 parent edc7240 commit 59969c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pbm/oplog/restore.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ var dontPreserveUUID = []string{
8787
"admin.system.roles",
8888
"admin.system.keys",
8989
"*.system.buckets.*", // timeseries
90+
"*.system.views", // timeseries
9091
}
9192

9293
// OplogRestore is the oplog applyer
@@ -324,7 +325,7 @@ func (o *OplogRestore) handleOp(oe db.Oplog) error {
324325
if o.cnamespase != oe.Namespace {
325326
o.preserveUUID = o.preserveUUIDopt
326327

327-
// if this is a create operation, the namesape would be
328+
// if this is a create operation, the namespace would be
328329
// inside the object to create
329330
if oe.Operation == "c" {
330331
if len(oe.Object) == 0 {

0 commit comments

Comments
 (0)