about summary refs log tree commit diff
path: root/db2/btree/bt_conv.c
diff options
context:
space:
mode:
Diffstat (limited to 'db2/btree/bt_conv.c')
-rw-r--r--db2/btree/bt_conv.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/db2/btree/bt_conv.c b/db2/btree/bt_conv.c
index 537e2f98ec..c9d5d1bc3e 100644
--- a/db2/btree/bt_conv.c
+++ b/db2/btree/bt_conv.c
@@ -8,7 +8,7 @@
 #include "config.h"
 
 #ifndef lint
-static const char sccsid[] = "@(#)bt_conv.c	10.3 (Sleepycat) 8/9/97";
+static const char sccsid[] = "@(#)bt_conv.c	10.4 (Sleepycat) 9/3/97";
 #endif /* not lint */
 
 #ifndef NO_SYSTEM_INCLUDES
@@ -69,6 +69,8 @@ __bam_mswap(pg)
 	u_int8_t *p;
 
 	p = (u_int8_t *)pg;
+
+	/* Swap the meta-data information. */
 	SWAP32(p);		/* lsn.file */
 	SWAP32(p);		/* lsn.offset */
 	SWAP32(p);		/* pgno */
@@ -79,5 +81,19 @@ __bam_mswap(pg)
 	SWAP32(p);		/* minkey */
 	SWAP32(p);		/* free */
 	SWAP32(p);		/* flags */
+
+	/* Swap the statistics. */
+	p = (u_int8_t *)&((BTMETA *)pg)->stat;
+	SWAP32(p);		/* bt_freed */
+	SWAP32(p);		/* bt_pfxsaved */
+	SWAP32(p);		/* bt_split */
+	SWAP32(p);		/* bt_rootsplit */
+	SWAP32(p);		/* bt_fastsplit */
+	SWAP32(p);		/* bt_added */
+	SWAP32(p);		/* bt_deleted */
+	SWAP32(p);		/* bt_get */
+	SWAP32(p);		/* bt_cache_hit */
+	SWAP32(p);		/* bt_cache_miss */
+
 	return (0);
 }