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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user