diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2019-05-03 10:50:40 +0530 |
---|---|---|
committer | hari gowtham <hari.gowtham005@gmail.com> | 2019-07-03 11:16:01 +0000 |
commit | 1c635e5c6961ea0fc625af6399a4727542599653 (patch) | |
tree | a84c06c71f9ebc621212df8e2e5c27ab1701a140 | |
parent | b6abdb8f936f92345cc44dfdcb282691cfbd3db8 (diff) |
features/shard: Fix integer overflow in block count accounting
Backport of:
> BUG: bz#1705884
> Change-Id: I2c1ddab17457f45e27428575ad16fa678fd6c0eb
> Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
... by holding delta_blocks in 64-bit int as opposed to 32-bit int.
Change-Id: I2c1ddab17457f45e27428575ad16fa678fd6c0eb
updates: bz#1716871
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
(cherry picked from commit e18e98659dd2b41eb59cf593fd625f1821a20abf)
-rw-r--r-- | xlators/features/shard/src/shard.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/shard/src/shard.h b/xlators/features/shard/src/shard.h index 570fe4685f5..cd6a663c03b 100644 --- a/xlators/features/shard/src/shard.h +++ b/xlators/features/shard/src/shard.h @@ -275,7 +275,7 @@ typedef struct shard_local { size_t req_size; size_t readdir_size; int64_t delta_size; - int delta_blocks; + int64_t delta_blocks; loc_t loc; loc_t dot_shard_loc; loc_t dot_shard_rm_loc; |