fix computing took for write operation result
This commit is contained in:
parent
7a6f56a692
commit
c237263ad1
|
@ -549,7 +549,7 @@ public class InternalEngine extends Engine {
|
|||
}
|
||||
versionMap.putUnderLock(index.uid().bytes(), new VersionValue(updatedVersion));
|
||||
indexResult.setLocation(location);
|
||||
indexResult.setTook(index.startTime() - System.nanoTime());
|
||||
indexResult.setTook(System.nanoTime() - index.startTime());
|
||||
indexResult.freeze();
|
||||
return indexResult;
|
||||
}
|
||||
|
@ -632,7 +632,7 @@ public class InternalEngine extends Engine {
|
|||
versionMap.putUnderLock(delete.uid().bytes(),
|
||||
new DeleteVersionValue(updatedVersion, engineConfig.getThreadPool().estimatedTimeInMillis()));
|
||||
deleteResult.setLocation(location);
|
||||
deleteResult.setTook(delete.startTime() - System.nanoTime());
|
||||
deleteResult.setTook(System.nanoTime() - delete.startTime());
|
||||
deleteResult.freeze();
|
||||
return deleteResult;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue