diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2019-03-25 19:07:16 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-04-15 02:25:26 +0000 |
commit | a67929e18a39d5c79a4a7e2b78015523626a367e (patch) | |
tree | cee5cbfb669df65699d932b2f8944ff28f0a7e7c /glusterfsd | |
parent | c56f102da21c5b69e656a055aaf736281596284d (diff) |
graph.c: remove extra gettimeofday() - reuse the graph dob.
It was written just before fill_void() call.
Note that there was a possible overflow if the hostname was too long
(unrelated to this patch), but it is now also fixed, as we use a smaller buffer
for the hostname. This, in turn, forces us to check if gethostname() failed
and add explicitly the terminating null to it.
Change-Id: I45fbc0a8e105f1247f3cbf61befac06fabbaea06
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'glusterfsd')
0 files changed, 0 insertions, 0 deletions