Pass prev_record_ptr through zenith.signal file to compute node

This commit is contained in:
Konstantin Knizhnik
2021-07-14 17:25:48 +03:00
parent f6705b7a7d
commit e74b06d999
6 changed files with 41 additions and 7 deletions

View File

@@ -96,8 +96,8 @@ pub fn get_current_timestamp() -> TimestampTz {
match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
Ok(n) => {
((n.as_secs() - ((POSTGRES_EPOCH_JDATE - UNIX_EPOCH_JDATE) * SECS_PER_DAY))
* USECS_PER_SEC
+ n.subsec_micros() as u64) as i64
* USECS_PER_SEC
+ n.subsec_micros() as u64) as i64
}
Err(_) => panic!("SystemTime before UNIX EPOCH!"),
}