add offser/records rbtree diagnosis code
Merge remote-tracking branch 'origin/db-diagnosis' into db-diagnosis