Davide Angelocola
c9539ede76
Fix integer overflow in TraceOptions (#9157)
Summary:
Hello from a happy user of rocksdb java :-)
Default constructor of TraceOptions is supposed to initialize size to 64GB but the expression contains an integer overflow.
Simple test case with JShell:
```
jshell> 64 * 1024 * 1024 * 1024
$1 ==> 0
jshell> 64L * 1024 * 1024 * 1024
$2 ==> 68719476736
```
Pull Request resolved: https://github.com/facebook/rocksdb/pull/9157
Reviewed By: pdillinger, zhichao-cao
Differential Revision: D32369273
Pulled By: mrambacher
fbshipit-source-id: 6a0c95fff7a91f27ff15d65b662c6b101756b450
2021-11-17 08:41:48 -08:00
..
2019-09-19 12:34:17 -07:00
2020-08-06 14:13:30 -07:00
2020-02-03 12:30:13 -08:00
2021-11-16 15:17:17 -08:00
2021-02-01 14:45:34 -08:00
2021-11-17 08:41:48 -08:00
2021-10-19 09:21:52 -07:00
2015-08-04 18:12:58 -07:00
2019-04-18 10:55:01 -07:00
2021-11-09 17:21:58 -08:00
2021-01-13 16:01:38 -08:00
2019-11-26 18:24:09 -08:00
2021-10-19 09:21:52 -07:00