fix javadoc and pass a better reason to refresh

This commit is contained in:
Simon Willnauer 2015-10-26 10:44:00 +01:00
parent 8be506224d
commit d07863c4a3
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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;