summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpc-clnt.h
diff options
context:
space:
mode:
authorZhou Zhengping <johnzzpcrystal@gmail.com>2017-05-07 17:29:26 +0800
committerRaghavendra G <rgowdapp@redhat.com>2017-05-08 04:08:29 +0000
commite0aaaccefdfda345b981b86dea23b2ffa52e9377 (patch)
tree0627e9fee1981f743433d1401a653f58fa545b55 /rpc/rpc-lib/src/rpc-clnt.h
parent2502162502009d4be75e67e49d71f3f38aaa7595 (diff)
rpc: use GF_ATOMIC_INC to generate rpc_clnt's callid
Change-Id: I57ad970411db1ccd3d2c56c504c7da9cc221051f BUG: 1448692 Signed-off-by: Zhou Zhengping <johnzzpcrystal@gmail.com> Reviewed-on: https://review.gluster.org/17198 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'rpc/rpc-lib/src/rpc-clnt.h')
-rw-r--r--rpc/rpc-lib/src/rpc-clnt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.h b/rpc/rpc-lib/src/rpc-clnt.h
index e5e493cd79e..952ecbce1a1 100644
--- a/rpc/rpc-lib/src/rpc-clnt.h
+++ b/rpc/rpc-lib/src/rpc-clnt.h
@@ -176,7 +176,7 @@ typedef struct rpc_clnt {
rpc_clnt_notify_t notifyfn;
rpc_clnt_connection_t conn;
void *mydata;
- uint64_t xid;
+ gf_atomic_t xid;
/* list of cb programs registered with rpc-clnt */
struct list_head programs;