Commit 17bcc85
authored
Fix stats bug in StorageManager (#4708)
I just stumbled across the fact that Serializer::size() returns
semantically different values depending on whether its in size computing
mode vs serialization mode. In size computing mode, it returns the
number of bytes "written" which is the required buffer size. In actual
serializing stuff mode, it returns how much of the buffer is left to be
written, so generally should return 0 after a complete serialization.
Just to see if anyone was misusing that I moved size() to the size
computing serializer and lo and behold, there was a single case where we
had buggy behavior. Fix is to just record the size calculated by the
size computing serializer.
---
TYPE: BUG
DESC: Fix stats bug in StorageManager1 parent 645f285 commit 17bcc85
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1376 | 1376 | | |
1377 | 1377 | | |
1378 | 1378 | | |
1379 | | - | |
| 1379 | + | |
1380 | 1380 | | |
1381 | 1381 | | |
1382 | 1382 | | |
| |||
0 commit comments