Skip to content

Commit

Permalink
Merge pull request #33 from JKOK005/fix-zk-bug
Browse files Browse the repository at this point in the history
Fixing ZK bug due to version write conflicts:
  • Loading branch information
stefelmanns authored Nov 16, 2019
2 parents 54509fb + f7a13fa commit 8e0fa10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CS6203/src/group-project/Utils/Zookeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ func (s SdClient) GetNodeValue (from_path string) ([]byte, error) {

func (s SdClient) SetNodeValue (from_path string, data []byte) error {
/* Sets the node value from from_path */
_, err := s.conn.Set(from_path, data, 0)
_, err := s.conn.Set(from_path, data, -1)
glog.Error(err)
return err
}

Expand Down

0 comments on commit 8e0fa10

Please sign in to comment.