diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2020-08-10 11:45:58 +0300 |
---|---|---|
committer | Amar Tumballi <amar@kadalu.io> | 2020-08-17 11:27:09 +0000 |
commit | 9978ceb26327de9545c6e0a4f9230b401e629793 (patch) | |
tree | 19468386ccc3f04bfc7a059d6de5710cfd1e88fd /xlators/cluster/afr | |
parent | 005d2ac1d8cc57e0e36f7cf230ae09a4f860bd16 (diff) |
libglusterfs: add library wrapper for time()
Add thin convenient library wrapper gf_time(),
adjust related users and comments as well.
Change-Id: If8969af2f45ee69c30c3406bce5baa8305fb7f80
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Updates: #1002
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heald.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heald.c b/xlators/cluster/afr/src/afr-self-heald.c index 2219a53b277..bf3c771f085 100644 --- a/xlators/cluster/afr/src/afr-self-heald.c +++ b/xlators/cluster/afr/src/afr-self-heald.c @@ -94,7 +94,7 @@ __afr_shd_healer_wait(struct subvol_healer *healer) priv = healer->this->private; disabled_loop: - wait_till.tv_sec = time(NULL) + priv->shd.timeout; + wait_till.tv_sec = gf_time() + priv->shd.timeout; while (!healer->rerun) { ret = pthread_cond_timedwait(&healer->cond, &healer->mutex, &wait_till); |