this.respond = respond; this.location = location; if ((sync = indexShard.getTranslogDurability() == Translog.Durability.REQUEST && location != null)) { pendingOps.incrementAndGet();
private void maybeSyncTranslog(final IndexShard indexShard) throws IOException { if (indexShard.getTranslogDurability() == Translog.Durability.REQUEST && indexShard.getLastSyncedGlobalCheckpoint() < indexShard.getGlobalCheckpoint()) { indexShard.sync(); } }
protected final void processAfterWrite(boolean refresh, IndexShard indexShard, Translog.Location location) { if (refresh) { try { indexShard.refresh("refresh_flag_index"); } catch (Throwable e) { // ignore } } if (indexShard.getTranslogDurability() == Translog.Durabilty.REQUEST && location != null) { indexShard.sync(location); } }
this.respond = respond; this.location = location; if ((sync = indexShard.getTranslogDurability() == Translog.Durability.REQUEST && location != null)) { pendingOps.incrementAndGet();
this.respond = respond; this.location = location; if ((sync = indexShard.getTranslogDurability() == Translog.Durability.REQUEST && location != null)) { pendingOps.incrementAndGet();
private void maybeSyncTranslog(final IndexShard indexShard) throws IOException { if (indexShard.getTranslogDurability() == Translog.Durability.REQUEST && indexShard.getLastSyncedGlobalCheckpoint() < indexShard.getGlobalCheckpoint()) { indexShard.sync(); } }
this.respond = respond; this.location = location; if ((sync = indexShard.getTranslogDurability() == Translog.Durability.REQUEST && location != null)) { pendingOps.incrementAndGet();
private void maybeSyncTranslog(final IndexShard indexShard) throws IOException { if (indexShard.getTranslogDurability() == Translog.Durability.REQUEST && indexShard.getLastSyncedGlobalCheckpoint() < indexShard.getGlobalCheckpoint()) { indexShard.sync(); } }