Skip to content

Commit

Permalink
check flush result in segment::write
Browse files Browse the repository at this point in the history
  • Loading branch information
lidezhu committed May 23, 2022
1 parent fea7273 commit 29116a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dbms/src/Storages/DeltaMerge/Segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,11 @@ bool Segment::write(DMContext & dm_context, const Block & block, bool flush_cach
{
if (flush_cache)
{
flushCache(dm_context);
while (!flushCache(dm_context))
{
if (hasAbandoned())
return false;
}
}
return true;
}
Expand Down

0 comments on commit 29116a7

Please sign in to comment.