We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bafbc3f commit 14e0659Copy full SHA for 14e0659
1 file changed
test/crash_recovery_test.c
@@ -748,7 +748,12 @@ static void test_10_very_early_kill(void){
748
check("test_10: commit count non-negative", nLog>=0);
749
if( nLog>0 ){
750
int nRows = exec_int(db, "SELECT count(*) FROM t", -1);
751
- check("test_10: row count matches commits", nRows==nLog);
+ /* The INSERT for the next would-be commit may already have
752
+ ** autocommitted before the process is killed inside
753
+ ** dolt_commit(). In that case recovery can legitimately see one
754
+ ** extra row beyond the durable Dolt commit count. */
755
+ check("test_10: row count matches commits or next insert",
756
+ nRows==nLog || nRows==nLog+1);
757
}
758
}else{
759
/* If we killed before the file was created, that's OK. */
0 commit comments