You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.6 KiB
67 lines
1.6 KiB
// Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved.
|
|
//
|
|
// Logconst.h
|
|
//
|
|
// Log manager global constants
|
|
//
|
|
|
|
#ifndef __LOGCONST__H__
|
|
|
|
#define __LOGCONST__H__
|
|
|
|
// ===============================
|
|
// CONSTANTS:
|
|
// ===============================
|
|
|
|
#define MIN_LOG_TIMER_INTERVAL 5 //milliseconds
|
|
|
|
#define DEFAULT_LOG_TIMER_INTERVAL 10 //milliseconds
|
|
|
|
#define MAX_LOG_TIMER_INTERVAL ((ULONG) -1) //milliseconds
|
|
|
|
#define MIN_LOG_FLUSH_INTERVAL 5 //milliseconds
|
|
|
|
#define DEFAULT_LOG_FLUSH_INTERVAL 50 //milliseconds
|
|
|
|
#define MAX_LOG_FLUSH_INTERVAL 1000 //milliseconds
|
|
|
|
#define MIN_LOG_CHKPT_INTERVAL 100 //milliseconds
|
|
|
|
#define DEFAULT_LOG_CHKPT_INTERVAL 50000 //milliseconds
|
|
|
|
#define MAX_LOG_CHKPT_INTERVAL ((ULONG) -1) //milliseconds
|
|
|
|
#define MAX_OUTSTANDING_CHKPT 25
|
|
|
|
#define MIN_LOG_BUFFERS 50
|
|
|
|
#define MAX_LOG_BUFFERS 500
|
|
|
|
#define DEFAULT_LOG_BUFFERS 200
|
|
|
|
#define INIT_GENERATION_NO 1
|
|
|
|
#define MIN_GENERATION_NO 2
|
|
|
|
#define MINFORCEFLUSH 20 //percentage of outstanding asynch writes threshold for forcing flush
|
|
|
|
#define MINFLUSHCOUNT 3 // minimum number of writes outstanding to force flush
|
|
|
|
#define LOGMGRSAVEDSPACE 4 //number of pages to "save" for the logmgr
|
|
|
|
#define DLLGETDTCLOGFN2_STR "DllGetDTCLOG2"
|
|
typedef HRESULT (* DLLGETDTCLOG2_FN) (REFCLSID clsid, REFIID riid, void ** ppv);
|
|
|
|
STDMETHODIMP InitLog
|
|
(
|
|
LPWSTR pwszLogPath,
|
|
DWORD dwTimer,
|
|
DWORD dwCheckpoint,
|
|
DWORD dwFlush,
|
|
DWORD dwSize,
|
|
BOOL fFailIfThere,
|
|
BOOL fUpdateFilesNotToBackupKey
|
|
);
|
|
|
|
#endif
|
|
|