diff options
| author | Chris Lu <chris.lu@gmail.com> | 2017-07-03 22:35:28 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2017-07-03 22:35:28 -0700 |
| commit | f9a1769df10dfd3f33c569af9cb27db1628e5159 (patch) | |
| tree | a240a6a6c609752b486bdd06d156f2fc2a9c453a /weed/server/master_ui | |
| parent | 1fbb8723dc414dc9b84bbaf84224b6f5829d34de (diff) | |
| download | seaweedfs-f9a1769df10dfd3f33c569af9cb27db1628e5159.tar.xz seaweedfs-f9a1769df10dfd3f33c569af9cb27db1628e5159.zip | |
fix nil raft server caused crash
fix https://github.com/chrislusf/seaweedfs/issues/524
Diffstat (limited to 'weed/server/master_ui')
| -rw-r--r-- | weed/server/master_ui/templates.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/server/master_ui/templates.go b/weed/server/master_ui/templates.go index e9ee2d8d2..bfce617c5 100644 --- a/weed/server/master_ui/templates.go +++ b/weed/server/master_ui/templates.go @@ -33,6 +33,7 @@ var StatusTpl = template.Must(template.New("status").Parse(`<!DOCTYPE html> <th>Max</th> <td>{{ .Topology.Max }}</td> </tr> + {{ with .RaftServer }} <tr> <th>Leader</th> <td><a href="http://{{ .Leader }}">{{ .Leader }}</a></td> @@ -45,6 +46,7 @@ var StatusTpl = template.Must(template.New("status").Parse(`<!DOCTYPE html> {{ end }} </ul></td> </tr> + {{ end }} </tbody> </table> </div> |
