Skip to content

Commit 0c961b9

Browse files
authored
Merge pull request #59 from aerospike/enable-services-alternate
feat: enables services alternate for aerospike loader
2 parents 6e3b53f + 7d8a0f3 commit 0c961b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/aerospike/load/AerospikeLoad.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public static void main(String[] args) throws IOException {
142142
options.addOption("tz", "timezone", true, "Timezone of source where data dump is taken (default: local timezone)");
143143
options.addOption("ec", "abort-error-count", true, "Error count to abort (default: 0)");
144144
options.addOption("wa", "write-action", true, "Write action if key already exists (default: update)");
145+
options.addOption("sa", "services_alternate", false, "Enable alternate services.");
145146
options.addOption("tls", "tls-enable", false, "Use TLS/SSL sockets");
146147
options.addOption("tp", "tls-protocols", true,
147148
"Allow TLS protocols\n" +
@@ -298,6 +299,10 @@ private static void initClientPolicy(CommandLine cl, ClientPolicy clientPolicy)
298299
}
299300
}
300301

302+
if (cl.hasOption("sa")) {
303+
clientPolicy.setUseServicesAlternate(true);
304+
}
305+
301306
clientPolicy.maxConnsPerNode = maxConnsPerNode;
302307
}
303308

0 commit comments

Comments
 (0)