add tuple judgement for the update operation of RRD class.