大网数据广告活动
磁盘与文件系统

JetIdle Function

· 52CE 我爱测

Learn more about: JetIdle Function

Applies to: Windows | Windows Server

JetIdle Function

The JetIdle function is defunct, and should only be used for testing purposes. JetIdle can be used to perform idle cleanup tasks or check the version store status in ESE.

    JET_ERR JET_API JetIdle(
      __in          JET_SESID sesid,
      __in          JET_GRBIT grbit
    );

Parameters

sesid

The session that will be used for this call.

grbit

A group of bits that contain the options to be used for this call, which include zero or more of the following bits:

Value Meaning
JET_bitIdleCompact Triggers cleanup of the version store.
JET_bitIdleFlushBuffers Reserved for future use. If this flag is specified, the API will return JET_errInvalidgrbit.
JET_bitIdleStatus Returns JET_wrnIdleFull if version store is more than half full.

Return Value

This function returns the JET_ERR datatype with one of the following return codes. For more information about the possible ESE errors, see Extensible Storage Engine Errors and Error Handling Parameters.

Return code Description
JET_errSuccess The operation completed successfully.
JET_errInvalidParameter A grbit parameter that was provided to the API was not valid.

If this function succeeds, the appropriate operation will be triggered, or an error code indicating how full the version store is depending on the grbit provided.

If this function fails, the requested operation will not have completed successfully.

Remarks

The version store maintains ESE's snapshot isolation mechanism. If the version store is more than half full, the program might close long-running transactions. If a long-running transaction exhausts the version store, ESE will stop allowing write operations to the database.

Requirements
Requirement Value
Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.
Header Declared in Esent.h.
Library Use ESENT.lib.
DLL Requires ESENT.dll.
See Also

JET_ERR
JET_GRBIT
JET_SESID
JetCommitTransaction

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 04/11/2016
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。