Fix journal file index when collision is detected (#16319)
Add index properly if collision is detected
Stelios Fragkakis committed
Nov 2, 2023 at 00:03 UTC
fc86034c86c996b3f924cc9e486568612bd049bc
1 file changed
+1
-1
database/engine/journalfile.c
+1
-1
@@ -169,7 +169,7 @@ static void njfv2idx_add(struct rrdengine_datafile *datafile) {
169
*PValue = datafile;
170
break;
171
}
172
- } while(0);
172
+ } while(1);
173
174
rw_spinlock_write_unlock(&datafile->ctx->njfv2idx.spinlock);
175
}