mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
fix javadoc and pass a better reason to refresh
This commit is contained in:
parent
8be506224d
commit
d07863c4a3
@ -1047,12 +1047,11 @@ public abstract class Engine implements Closeable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retuns the timestamp of the last write in nanoseconds.
|
||||
* Returns the timestamp of the last write in nanoseconds.
|
||||
* Note: this time might not be absolutely accurate since the {@link Operation#startTime()} is used which might be
|
||||
* slightly inaccurate.
|
||||
* @see System#nanoTime()
|
||||
* @see Operation#startTime()
|
||||
* @return
|
||||
*/
|
||||
public long getLastWriteNanos() {
|
||||
return this.lastWriteNanos;
|
||||
|
@ -588,7 +588,7 @@ public class InternalEngine extends Engine {
|
||||
throw new EngineException(shardId, "failed to renew sync commit", ex);
|
||||
}
|
||||
if (renewed) { // refresh outside of the write lock
|
||||
refresh("version_table_flush");
|
||||
refresh("renew sync commit");
|
||||
}
|
||||
|
||||
return renewed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user