change SnapshotRequest to RequestSnapshot

release-0.4
Xiang Li 2013-07-19 11:56:34 -07:00
parent 732f80ceda
commit 749a89d5a5
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func SnapshotHttpHandler(w http.ResponseWriter, req *http.Request) {
err := decodeJsonRequest(req, aereq)
if err == nil {
debug("[recv] POST http://%s/snapshot/ ", raftServer.Name())
if resp := raftServer.SnapshotRequest(aereq); resp != nil {
if resp := raftServer.RequestSnapshot(aereq); resp != nil {
w.WriteHeader(http.StatusOK)
json.NewEncoder(w).Encode(resp)
return