Update rdb.c

Interval set patch for rdb commit