From ec7afe03a87210d1e76b5c56101e94f9e4ba175a Mon Sep 17 00:00:00 2001 From: Ralf Ertzinger Date: Sat, 10 Feb 2024 18:01:49 +0100 Subject: [PATCH] Update glusterfs io callback function signature Starting with glusterfs 6.0, the IO callback function takes two additional parameters for stats structs. Ideally there'd be a way to detect which API version we're building against, but nothing convenient seems to exist. --- plugins/glusterfs/glusterfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/glusterfs/glusterfs.c b/plugins/glusterfs/glusterfs.c index 83428faf3f..c0063f4e58 100644 --- a/plugins/glusterfs/glusterfs.c +++ b/plugins/glusterfs/glusterfs.c @@ -46,7 +46,7 @@ struct uwsgi_glusterfs_async_io { ssize_t rlen; }; -static void uwsgi_glusterfs_read_async_cb(glfs_fd_t *fd, ssize_t rlen, void *data) { +static void uwsgi_glusterfs_read_async_cb(glfs_fd_t *fd, ssize_t rlen, struct glfs_stat *prestat, struct glfs_stat *poststat, void *data) { struct uwsgi_glusterfs_async_io *aio = (struct uwsgi_glusterfs_async_io *) data; #ifdef UWSGI_DEBUG uwsgi_log("[glusterfs-cb] rlen = %d\n", rlen);