summaryrefslogtreecommitdiff
path: root/absl/synchronization/mutex.cc
diff options
context:
space:
mode:
authorGravatar David Majnemer <majnemer@google.com>2022-07-18 22:24:32 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-07-18 22:25:22 -0700
commit0c8bd82e90bac01f8afc6afdd5754d9d9b16cf68 (patch)
treeeaba32198ac0e0806dea3f4e89dc41d7eb5b6c12 /absl/synchronization/mutex.cc
parente633c7110967b6d3e72c34266cd18a6db4ccfe38 (diff)
Check for negative return values from ReadFromOffset
In some places, we check if the amount we read is a multiple of some amount we are interested in. However, ReadFromOffset returns -1 when it errors. Certain record sizes can cause ReadFromOffset to cause us to think that we succeeded when we did not. It also results in confusing messages in logs. PiperOrigin-RevId: 461798762 Change-Id: I8c9c7f2cea4d1789e95e50833d5405239a47f02e
Diffstat (limited to 'absl/synchronization/mutex.cc')
0 files changed, 0 insertions, 0 deletions