summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/latency.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/latency.c')
-rw-r--r--libglusterfs/src/latency.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/latency.c b/libglusterfs/src/latency.c
index 5156e8e2551..71f9824209f 100644
--- a/libglusterfs/src/latency.c
+++ b/libglusterfs/src/latency.c
@@ -174,7 +174,7 @@ gf_latency_toggle (int signum)
{
glusterfs_ctx_t *ctx = NULL;
- ctx = get_global_ctx_ptr ();
+ ctx = glusterfs_ctx_get ();
if (ctx) {
ctx->measure_latency = !ctx->measure_latency;