mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-27 08:29:59 +00:00
Merge pull request #5 from GreptimeTeam/feat/wait-flush-done
feat: Region writer wait flush done
This commit is contained in:
@@ -266,7 +266,14 @@ impl RegionWriter {
|
||||
|
||||
ensure!(!inner.is_closed(), error::ClosedRegionSnafu);
|
||||
|
||||
inner.manual_flush(writer_ctx).await
|
||||
inner.manual_flush(writer_ctx).await?;
|
||||
|
||||
// Wait flush.
|
||||
if let Some(handle) = inner.flush_handle.take() {
|
||||
handle.join().await?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Cancel flush task if any
|
||||
|
||||
Reference in New Issue
Block a user