]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: use _setattrx when changing timestamps
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 9 Sep 2022 14:33:16 +0000 (14:33 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 10 Nov 2022 07:38:13 +0000 (09:38 +0200)
commit8abccedd12a3d8dfb4fc926908ba7e2c1f94bf35
treea9298e65a7197714cfea38ac320d38e238598b79
parent1c9e763fc0a6249c66f10b46bc1496b494577ea4
client: use _setattrx when changing timestamps

_setattrx uses the ceph_statx structure while _setattr uses "stat",
which on some platforms (Windows) has lower time precision.

We'll switch some client.cc methods to using _setattrx on all
platforms since there's no downside in doing so and it improves
Windows timestamp precision.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/client/Client.cc