diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2020-09-03 11:17:07 +0300 |
---|---|---|
committer | Amar Tumballi <amar@kadalu.io> | 2020-09-07 12:56:45 +0000 |
commit | c696144b3690f7ed8cf04a8b51ca601f45e427ad (patch) | |
tree | 5b8e2e145e0cde67fa35901feec77922e447e83c /xlators/features/index/src/index.c | |
parent | a1c89afd79a1ed08e37a4b5d17911ae29488eb8c (diff) |
xlators: prefer libglusterfs time API
Prefer timespec_now_realtime() and gf_time() over clock_gettime()
and time(), use gf_tvdiff() and gf_tsdiff() where appropriate,
drop unused time_elapsed() and leftovers in 'struct posix_private'.
Change-Id: Ie1f0229df5b03d0862193ce2b7fb91d27b0981b6
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Updates: #1002
Diffstat (limited to 'xlators/features/index/src/index.c')
-rw-r--r-- | xlators/features/index/src/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/index/src/index.c b/xlators/features/index/src/index.c index f674f0b7b64..4abb2c73ce5 100644 --- a/xlators/features/index/src/index.c +++ b/xlators/features/index/src/index.c @@ -2592,7 +2592,7 @@ notify(xlator_t *this, int event, void *data, ...) if ((event == GF_EVENT_PARENT_DOWN) && victim->cleanup_starting) { stub_cnt = GF_ATOMIC_GET(priv->stub_cnt); - clock_gettime(CLOCK_REALTIME, &sleep_till); + timespec_now_realtime(&sleep_till); sleep_till.tv_sec += 1; /* Wait for draining stub from queue before notify PARENT_DOWN */ |