mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-19 14:10:37 +00:00
Return Err on shutdown
This commit is contained in:
@@ -287,8 +287,8 @@ impl<'a> Read for CopyInReader<'a> {
|
||||
}
|
||||
|
||||
// Shutting down
|
||||
// TODO is this fine?
|
||||
Ok(0)
|
||||
let msg = "Importer thread was shut down";
|
||||
Err(io::Error::new(io::ErrorKind::Other, msg))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user