hunk.code_window: 	}
   	return nil
   }
   func (s SqlSystemStore) SaveOrUpdate(system *model.System) *model.AppError {
   	if err := s.GetReplica().SelectOne(&model.System{}, "SELECT * FROM Systems WHERE Name = :Name", map[string]interface{}{"Name": system.Name}); err == nil {
   		if _, err := s.GetMaster().Update(system); err != nil {
   			return model.NewAppError("SqlSystemStore.SaveOrUpdate", "store.sql_system.update.app_error", nil, err.Error(), http.StatusInternalServerError)
   		}
   	} else {
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit: 	if err := s.GetMaster().SelectOne(&model.System{}, "SELECT * FROM Systems WHERE Name = :Name", map[string]interface{}{"Name": system.Name}); err == nil {
  
hunk.file_path: store/sqlstore/system_store.go
hunk.type: replace
file: // Copyright 2016 The Go Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style
  // license that can be found in the LICENSE file.
  
  // +build freebsd openbsd netbsd
  
  package fastwalk
  
  import "syscall"
  
  func direntInode(dirent *syscall.Dirent) uint64 {
  	return uint64(dirent.Fileno)
  }
  