Skip to content

Commit 26e595e

Browse files
authored
[PBM-1265] fix for "Cannot execute a write operation in read-only mode" (#929)
1 parent 908b744 commit 26e595e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pbm/restore/physical.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,7 @@ func shutdown(c *mongo.Client, dbpath string) error {
12731273

12741274
func (r *PhysRestore) recoverStandalone() error {
12751275
err := r.startMongo("--dbpath", r.dbpath,
1276+
"--setParameter", "disableLogicalSessionCacheRefresh=true",
12761277
"--setParameter", "recoverFromOplogAsStandalone=true",
12771278
"--setParameter", "takeUnstableCheckpointOnShutdown=true")
12781279
if err != nil {

0 commit comments

Comments
 (0)