Beispiel #1
0
func (ss *Storageserver) RemoveFromListRPC(args *storageproto.PutArgs, reply *storageproto.PutReply) os.Error {
	ss.handleModRequest(args.Key) // revoke leases

	status, err := ss.tm.RemoveFromList(args.Key, []byte(args.Value))
	reply.Status = status
	return err
}
Beispiel #2
0
func (ss *Storageserver) PutRPC(args *storageproto.PutArgs, reply *storageproto.PutReply) os.Error {
	ss.handleModRequest(args.Key) // revoke leases

	status := ss.tm.PUT(args.Key, []byte(args.Value))
	reply.Status = status
	return nil
}