diff options
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
| -rw-r--r-- | xlators/cluster/afr/src/afr.h | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index 71f4b7e561e..a5c75add7ba 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -67,6 +67,8 @@ typedef struct _afr_private {  	unsigned int metadata_lock_server_count;  	unsigned int entry_lock_server_count; +	gf_boolean_t strict_readdir; +  	unsigned int wait_count;      /* # of servers to wait for success */          uint64_t up_count;      /* number of CHILD_UPs we have seen */ @@ -327,6 +329,7 @@ typedef struct _afr_local {  			size_t size;  			off_t offset; +                        gf_boolean_t failed;  			int last_tried;  		} readdir; @@ -547,6 +550,10 @@ typedef struct {          int32_t wbflags;          uint64_t up_count;   /* number of CHILD_UPs this fd has seen */          uint64_t down_count; /* number of CHILD_DOWNs this fd has seen */ + +        int32_t last_tried; +        gf_boolean_t failed_over; +        struct list_head entries; /* needed for readdir failover */  } afr_fd_ctx_t;  | 
