Convert ignoreLocality flag to integer