Storage engine and mode switching method, device, program product and storage medium
Patent Information
- Application Number
- CN202510421150.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2026-10-16
AI Technical Summary
[0015] In this embodiment, the storage engine is designed with two modes: in normal mode, the main thread of the storage engine executes the recycling subtasks of the partition recycling task; and in offload mode, the main thread submits some of the recycling subtasks to the auxiliary thread of the storage engine for execution. Furthermore, the storage engine is designed to switch modes. Specifically, when it is determined that the storage engine needs to switch modes, it can switch from the current mode to the desired mode based on the desired mode and the current mode of the storage engine. Thus, this embodiment's method can ensure the stable operation of the storage engine when a new offload mode is introduced, through the mode switching function. For example, this embodiment can revert from the offload mode to the original normal mode to prevent instability in the new mode; or, it can switch from the storage engine running in normal mode to the offload mode as needed, thereby improving the processing efficiency of foreground read/write tasks in the new offload mode. Therefore, this embodiment of the solution designs two modes of storage engine and mode switching, so that the storage engine can improve the processing efficiency of foreground read and write tasks through new functions, or fall back to the original normal mode if problems occur after the introduction of new functions, thus ensuring the stable operation of the storage engine.