mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-24 00:20:37 +00:00
fix the problem exposed by the previously added test case
This commit is contained in:
@@ -642,10 +642,10 @@ impl RemoteTimelineClient {
|
||||
UploadQueue::Stopped(stopped) => stopped,
|
||||
};
|
||||
|
||||
assert!(
|
||||
stopped.last_uploaded_index_part.deleted_at.is_none(),
|
||||
"deleted_at already set"
|
||||
);
|
||||
if let Some(delete_dat) = stopped.last_uploaded_index_part.deleted_at.as_ref() {
|
||||
// XXX deal with case where the first call is stopped being polled
|
||||
anyhow::bail!("timeline is deleting, deleted_at: {:?}", delete_dat);
|
||||
}
|
||||
stopped.last_uploaded_index_part.deleted_at = Some(Utc::now().naive_utc());
|
||||
stopped.last_uploaded_index_part.clone()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user