def getOldObjId(operation):
    if (operation.vtType == 'change'):
        return operation.db_oldObjId
    return operation.db_objectId
def getOldObjId(operation):
    if (operation.vtType == 'change'):
        return operation.db_oldObjId
    return operation.db_objectId