codeintel: Fix upload timestamps
Created by: efritz
Closes https://github.com/sourcegraph/sourcegraph/issues/9596.
The issue is that now()
used in a long-running transaction will always give you the start of a transaction. This caused the start and finish timestamps of an upload to be basically the same value. Using clock_timetsamp()
over now()
in long-running transaction will give you the actual time.