Skip to content

Commit

Permalink
Update glusterfs io callback function signature
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Lalufu committed Feb 10, 2024
1 parent 5d13955 commit ec7afe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/glusterfs/glusterfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec7afe0

Please sign in to comment.