fis-gtm/sr_port/gvstats_rec.h

38 lines
1.2 KiB
C
Raw Normal View History

/****************************************************************
* *
* Copyright 2008, 2010 Fidelity Information Services, Inc *
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
* under a license. If you do not know the terms of *
* the license, please stop and do not read further. *
* *
****************************************************************/
#ifndef GVSTATS_REC_H_INCLUDED
#define GVSTATS_REC_H_INCLUDED
/* Note gvstats_rec exists in both sgmnt_data (file header) and in node_local. The reason
* for this is so that gvstats can be updated by read-only processes which would not be
* able to update the read-only file header. The gvstats in node_local are the ones that
* get updated and are peridically copied back to the fileheader and during fileheader
* flushes to keep them up to date.
*/
#define TAB_GVSTATS_REC(A,B,C) A,
enum gvstats_rec_type
{
#include "tab_gvstats_rec.h"
n_gvstats_rec_types
};
#undef TAB_GVSTATS_REC
typedef struct gvstats_rec_struct
{
#define TAB_GVSTATS_REC(A,B,C) gtm_uint64_t A;
#include "tab_gvstats_rec.h"
} gvstats_rec_t;
#undef TAB_GVSTATS_REC
#endif