fix bug in addOplogPartitions