From b12f67f804bfb525aaa76f2b42d7ead30e95aa25 Mon Sep 17 00:00:00 2001 From: MengYao Date: Tue, 6 Aug 2024 10:50:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8C=E5=86=99=E5=AE=9E=E6=97=B6=E5=A4=87?= =?UTF-8?q?=E4=BB=BDNDK=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MengYao --- .../include/relational_store.h | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/distributeddatamgr/relational_store/include/relational_store.h b/distributeddatamgr/relational_store/include/relational_store.h index 471e48649..66654b2e5 100644 --- a/distributeddatamgr/relational_store/include/relational_store.h +++ b/distributeddatamgr/relational_store/include/relational_store.h @@ -95,6 +95,25 @@ typedef enum Rdb_SecurityArea { RDB_SECURITY_AREA_EL4, } Rdb_SecurityArea; +/** +* @brief High availability mode. +* +* @since 12 +*/ +typedef enum Rdb_HAMode { + /** + * @brief Single database. + * @since 12 + */ + HA_SINGLE = 0, + + /** + * @brief Real-time dual-write backup database. + * @since 12 + */ + HA_MASTER_SLAVER, +} Rdb_HAMode; + /** * @brief Manages relational database configurations. * @@ -136,6 +155,12 @@ typedef struct { * @since 11 */ int area; + /** + * High availability mode. + * + * @since 12 + */ + int haMode; } OH_Rdb_Config; #pragma pack() -- Gitee