@@ -351,7 +351,7 @@ public WorkLoadSettings get_work_load_settings() {
351351 }
352352
353353 public Tuple2 <String , Object > next () {
354- long temp = this .ws .dr .createItr .incrementAndGet ();
354+ long temp = this .ws .dr .createItr .getAndIncrement ();
355355 String k = null ;
356356 Object v = null ;
357357 try {
@@ -368,7 +368,7 @@ public Tuple2<String, Object> next() {
368368 }
369369
370370 public Tuple2 <String , Object > nextRead () {
371- long temp = this .ws .dr .readItr .incrementAndGet ();
371+ long temp = this .ws .dr .readItr .getAndIncrement ();
372372 String k = null ;
373373 Object v = null ;
374374 try {
@@ -385,7 +385,7 @@ public Tuple2<String, Object> nextRead() {
385385 }
386386
387387 public Tuple2 <String , Object > nextUpdate () {
388- long temp = this .ws .dr .updateItr .incrementAndGet ();
388+ long temp = this .ws .dr .updateItr .getAndIncrement ();
389389 String k = null ;
390390 Object v = null ;
391391 try {
@@ -402,7 +402,7 @@ public Tuple2<String, Object> nextUpdate() {
402402 }
403403
404404 public Tuple2 <String , Object > nextExpiry () {
405- long temp = this .ws .dr .expiryItr .incrementAndGet ();
405+ long temp = this .ws .dr .expiryItr .getAndIncrement ();
406406 String k = null ;
407407 Object v = null ;
408408 try {
@@ -425,16 +425,16 @@ public Tuple2<String, Object> nextExpiry() {
425425
426426 switch (op_type ) {
427427 case "insert" :
428- temp = this .ws .dr .subdocInsertItr .incrementAndGet ();
428+ temp = this .ws .dr .subdocInsertItr .getAndIncrement ();
429429 break ;
430430 case "upsert" :
431- temp = this .ws .dr .subdocUpsertItr .incrementAndGet ();
431+ temp = this .ws .dr .subdocUpsertItr .getAndIncrement ();
432432 break ;
433433 case "remove" :
434- temp = this .ws .dr .subdocRemoveItr .incrementAndGet ();
434+ temp = this .ws .dr .subdocRemoveItr .getAndIncrement ();
435435 break ;
436436 case "lookup" :
437- temp = this .ws .dr .subdocReadItr .incrementAndGet ();
437+ temp = this .ws .dr .subdocReadItr .getAndIncrement ();
438438 break ;
439439 default :
440440 return null ;
@@ -451,7 +451,7 @@ public Tuple2<String, Object> nextExpiry() {
451451 public Tuple2 <String , List <LookupInSpec >>nextSubDocLookup () {
452452 String key = null ;
453453 List <LookupInSpec > specs = null ;
454- long temp = this .ws .dr .subdocReadItr .incrementAndGet ();
454+ long temp = this .ws .dr .subdocReadItr .getAndIncrement ();
455455 try {
456456 key = (String ) this .keyMethod .invoke (this .keys , temp );
457457 specs = (List <LookupInSpec >) this .subdocLookupMethod .invoke (this .vals , key );
@@ -507,7 +507,7 @@ public List<String> nextDeleteBatch() {
507507 List <String > docs = new ArrayList <String >();
508508 while (this .has_next_delete () && count <ws .batchSize *ws .deletes /100 ) {
509509 try {
510- temp = this .ws .dr .deleteItr .incrementAndGet ();
510+ temp = this .ws .dr .deleteItr .getAndIncrement ();
511511 if (this .target_vbuckets != null && this .target_vbuckets .length > 0 ) {
512512 docs .add (this .generated_delete_keys .get (temp ));
513513 } else {
0 commit comments