summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/fd.c
diff options
context:
space:
mode:
authorZhou Zhengping <johnzzpcrystal@gmail.com>2017-05-03 18:33:40 +0800
committerJeff Darcy <jeff@pl.atyp.us>2017-05-04 15:42:08 +0000
commit9f930646eeed12a243d083c91acb59fbe7004074 (patch)
tree8d02fbe6f0a1cf631cbb86ab44119beaada9e78b /libglusterfs/src/fd.c
parentd7cb404d9f75253b86b7a9263cab56ec853c5c94 (diff)
fd: We should use dict_set_uint64 to store fd->pid
Change-Id: I136372b9929d3ecf243649b6945571a67bfd80eb BUG: 1447828 Signed-off-by: Zhou Zhengping <johnzzpcrystal@gmail.com> Reviewed-on: https://review.gluster.org/17172 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Amar Tumballi <amarts@redhat.com> Tested-by: Amar Tumballi <amarts@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'libglusterfs/src/fd.c')
-rw-r--r--libglusterfs/src/fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/fd.c b/libglusterfs/src/fd.c
index 118f876c396..a824db7c7a5 100644
--- a/libglusterfs/src/fd.c
+++ b/libglusterfs/src/fd.c
@@ -1182,7 +1182,7 @@ fdentry_dump_to_dict (fdentry_t *fdentry, char *prefix, dict_t *dict,
if (fdentry->fd) {
memset (key, 0, sizeof (key));
snprintf (key, sizeof (key), "%s.pid", prefix);
- ret = dict_set_int32 (dict, key, fdentry->fd->pid);
+ ret = dict_set_uint64 (dict, key, fdentry->fd->pid);
if (ret)
return;