(filePath string)
| 100 | } |
| 101 | |
| 102 | func (srv *Server) createPostponeCutOverFlagFile(filePath string) (err error) { |
| 103 | if !base.FileExists(filePath) { |
| 104 | if err := base.TouchFile(filePath); err != nil { |
| 105 | return fmt.Errorf("failed to create postpone cut-over flag file %s: %w", filePath, err) |
| 106 | } |
| 107 | srv.migrationContext.Log.Infof("Created postpone-cut-over-flag-file: %s", filePath) |
| 108 | } |
| 109 | return nil |
| 110 | } |
| 111 | |
| 112 | func (srv *Server) BindSocketFile() (err error) { |
| 113 | if srv.migrationContext.ServeSocketFile == "" { |