wanring the ugly way to cacaluate bson length for deletedRecord in src