public void processAddMsg(Message msg){
		
		if(retiring){
			AckMessage nack = new AckMessage(procid, false);
			sendMsg(msg.procid, nack);
			return;
		}
		
		AddMessage amsg = (AddMessage)msg;
		
		LogEntry e = new LogEntry(amsg.song, amsg.url, procid, ++localVersion);
		
		if(primary){
			e.csn = ++lastCSN;
			cLog.add(e);
			database.put(amsg.song, amsg.url);
		} else {
			uLog.add(e);
		}
		if(versionVector.get(e.originServ) == null){
			versionVector.put(e.originServ, e.timestamp);
		}
		versionVector.put(e.originServ,max(versionVector.get(e.originServ), e.timestamp));
		
		
	}