From 8fb50638f5f71cac2e3e1e4956c55cd8d1de5863 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Thu, 28 Feb 2013 17:05:29 +0000 Subject: [PATCH] Unix CM: Update AFS_STATS_NUM_FS_RPC_OPS There are actually 30 elements in the AFS_STATS_FS array. When the ResidencyRpcs counter was added, the total number of operations wasn't updated. Fix this so that it is correct, although this still remains rather fragile. Reviewed-on: http://gerrit.openafs.org/9313 Tested-by: BuildBot Reviewed-by: Jeffrey Altman (cherry picked from commit 2c8e4f839fc253abb8051bbf89d36e94a2200590) Change-Id: Id6094e6e5007984cb080281f6a085eba958d6367 Reviewed-on: http://gerrit.openafs.org/9540 Reviewed-by: Andrew Deason Reviewed-by: Stephan Wiesand Reviewed-by: Derrick Brashear Tested-by: BuildBot --- src/afs/afs_stats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/afs_stats.h b/src/afs/afs_stats.h index 6179d425d..d7abda4e4 100644 --- a/src/afs/afs_stats.h +++ b/src/afs/afs_stats.h @@ -865,7 +865,7 @@ struct afs_stats_CMPerf { #define AFS_STATS_FS_RPCIDX_XLOOKUP 28 #define AFS_STATS_FS_RPCIDX_RESIDENCYRPCS 29 -#define AFS_STATS_NUM_FS_RPC_OPS 29 +#define AFS_STATS_NUM_FS_RPC_OPS 30 #define AFS_STATS_FS_RPCIDXES_ISWRITE(X) (((X > AFS_STATS_FS_RPCIDX_FETCHSTATUS) && (X < AFS_STATS_FS_RPCIDX_GETSTATISTICS)) || (X == AFS_STATS_FS_RPCIDX_SETVOLUMESTATUS)) #define AFS_STATS_FS_RPCIDXES_WRITE_RETRIABLE(X) ((X >= AFS_STATS_FS_RPCIDX_STOREDATA) && (X <= AFS_STATS_FS_RPCIDX_STORESTATUS)) -- 2.39.5