cast i to int64 first, ensuring the calculation happens in 64-bit space

fix https://github.com/seaweedfs/seaweedfs/issues/8086
This commit is contained in:
Chris Lu
2026-01-22 14:05:45 -08:00
parent d345752e3d
commit 2e9a7e13e2

View File

@@ -81,7 +81,7 @@ func TestWriteRowsNoPanic(t *testing.T) {
}
// Log columns
rec.Fields[SW_COLUMN_NAME_TS] = &schema_pb.Value{Kind: &schema_pb.Value_Int64Value{Int64Value: int64(1756913789000000000 + i)}}
rec.Fields[SW_COLUMN_NAME_TS] = &schema_pb.Value{Kind: &schema_pb.Value_Int64Value{Int64Value: 1756913789000000000 + int64(i)}}
var keyBytes []byte
if i%7 == 0 {
keyBytes = nil // ensure nil-keys are handled