func (db *DB) RSet(partition uint32, r *Record) (err error) {
	var key [4]byte
	p := 0
	put4(key[:], &p, r.Id)
	value := make([]byte, 4+len(r.Query)+len(r.Reply))
	p = 0
	put2(value, &p, len(r.Query))
	copy(value[p:], r.Query)
	p += len(r.Query)
	put2(value, &p, len(r.Reply))
	copy(value[p:], r.Reply)
	db.rwm.Lock()         // W+
	defer db.rwm.Unlock() // W-
	return db.Set(partition, key[:], value)
}
// RSet stores r under partition and returns an error if any.
RSet stores r under partition and returns an error if any.
// RSet stores r under partition and returns an error if any .
func (db *DB) RSet(partition uint32, r *Record) (err error) {
	var key [4]byte
	p := 0
	put4(key[:], &p, r.Id)
	value := make([]byte, 4+len(r.Query)+len(r.Reply))
	p = 0
	put2(value, &p, len(r.Query))
	copy(value[p:], r.Query)
	p += len(r.Query)
	put2(value, &p, len(r.Reply))
	copy(value[p:], r.Reply)
	db.rwm.Lock()         
	defer db.rwm.Unlock() 
	return db.Set(partition, key[:], value)
}
func ( db * DB ) RSet ( partition uint32 , r * Record ) ( err error ) { var key [ 4 ] byte p := 0 put4 ( key [ : ] , & p , r . Id ) value := make ( [ ] byte , 4 + len ( r . Query ) + len ( r . Reply ) ) p = 0 put2 ( value , & p , len ( r . Query ) ) copy ( value [ p : ] , r . Query ) p += len ( r . Query ) put2 ( value , & p , len ( r . Reply ) ) copy ( value [ p : ] , r . Reply ) db . rwm . Lock ( ) defer db . rwm . Unlock ( ) return db . Set ( partition , key [ : ] , value ) }
RSet stores r under partition and returns an error if any.
RSet stores r under partition and returns an error if any .
// W+ // W-