50dc83
From 7221352670a750e35268573dba36c139a5041b14 Mon Sep 17 00:00:00 2001
50dc83
From: Krutika Dhananjay <kdhananj@redhat.com>
50dc83
Date: Fri, 3 May 2019 10:50:40 +0530
50dc83
Subject: [PATCH 188/192] features/shard: Fix integer overflow in block count
50dc83
 accounting
50dc83
50dc83
... by holding delta_blocks in 64-bit int as opposed to 32-bit int.
50dc83
50dc83
> Upstream: https://review.gluster.org/22655
50dc83
> BUG: 1705884
50dc83
> Change-Id: I2c1ddab17457f45e27428575ad16fa678fd6c0eb
50dc83
50dc83
Change-Id: I2c1ddab17457f45e27428575ad16fa678fd6c0eb
50dc83
updates: bz#1668001
50dc83
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
50dc83
Reviewed-on: https://code.engineering.redhat.com/gerrit/173476
50dc83
Tested-by: RHGS Build Bot <nigelb@redhat.com>
50dc83
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
50dc83
---
50dc83
 xlators/features/shard/src/shard.h | 2 +-
50dc83
 1 file changed, 1 insertion(+), 1 deletion(-)
50dc83
50dc83
diff --git a/xlators/features/shard/src/shard.h b/xlators/features/shard/src/shard.h
50dc83
index 570fe46..cd6a663 100644
50dc83
--- a/xlators/features/shard/src/shard.h
50dc83
+++ b/xlators/features/shard/src/shard.h
50dc83
@@ -275,7 +275,7 @@ typedef struct shard_local {
50dc83
     size_t req_size;
50dc83
     size_t readdir_size;
50dc83
     int64_t delta_size;
50dc83
-    int delta_blocks;
50dc83
+    int64_t delta_blocks;
50dc83
     loc_t loc;
50dc83
     loc_t dot_shard_loc;
50dc83
     loc_t dot_shard_rm_loc;
50dc83
-- 
50dc83
1.8.3.1
50dc83