MCPcopy
hub / github.com/github/gh-ost / createPostponeCutOverFlagFile

Method createPostponeCutOverFlagFile

go/logic/server.go:102–110  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

100}
101
102func (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
112func (srv *Server) BindSocketFile() (err error) {
113 if srv.migrationContext.ServeSocketFile == "" {

Callers 2

applyServerCommandMethod · 0.95

Calls 4

FileExistsFunction · 0.92
TouchFileFunction · 0.92
ErrorfMethod · 0.65
InfofMethod · 0.65

Tested by 1