Skip to content

Commit

Permalink
Merge branch 'master' into dev-banner-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
liat-grozovik committed Apr 16, 2024
2 parents 2b9eb57 + 5a73792 commit 6305046
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
29 changes: 29 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,35 @@ stages:
artifact_name: sonic-swss-common.arm64
debian_version: ${{ parameters.debian_version }}

- stage: BuildBookworm
dependsOn: BuildArm
condition: succeeded('BuildArm')
jobs:
- template: .azure-pipelines/build-template.yml
parameters:
arch: amd64
sonic_slave: sonic-slave-bookworm:$(BUILD_BRANCH)
artifact_name: sonic-swss-common-bookworm
debian_version: ${{ parameters.debian_version }}

- template: .azure-pipelines/build-template.yml
parameters:
arch: armhf
timeout: 180
pool: sonicbld-armhf
sonic_slave: sonic-slave-bookworm-armhf:$(BUILD_BRANCH)
artifact_name: sonic-swss-common-bookworm.armhf
debian_version: ${{ parameters.debian_version }}

- template: .azure-pipelines/build-template.yml
parameters:
arch: arm64
timeout: 180
pool: sonicbld-arm64
sonic_slave: sonic-slave-bookworm-arm64:$(BUILD_BRANCH)
artifact_name: sonic-swss-common-bookworm.arm64
debian_version: ${{ parameters.debian_version }}

- stage: BuildSairedis
dependsOn: Build
condition: succeeded('Build')
Expand Down
2 changes: 1 addition & 1 deletion common/asyncdbupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void AsyncDBUpdater::dbUpdateThread()
pthread_setschedprio(pthread_self(), min_priority + 1);

// Follow same logic in ConsumerStateTable: every received data will write to 'table'.
DBConnector db(m_db->getDbName(), 0, true);
DBConnector db(m_db->getDbName(), 0, true, m_db->getDBKey());
Table table(&db, m_tableName);
std::mutex cvMutex;
std::unique_lock<std::mutex> cvLock(cvMutex);
Expand Down
2 changes: 2 additions & 0 deletions common/dbconnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,8 @@ void DBConnector::select(DBConnector *db)
DBConnector::DBConnector(const DBConnector &other)
: RedisContext(other)
, m_dbId(other.m_dbId)
, m_dbName(other.m_dbName)
, m_key(other.m_key)
{
select(this);
}
Expand Down
5 changes: 5 additions & 0 deletions common/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ namespace swss {
#define APP_ROUTE_TABLE_NAME "ROUTE_TABLE"
#define APP_LABEL_ROUTE_TABLE_NAME "LABEL_ROUTE_TABLE"
#define APP_TUNNEL_DECAP_TABLE_NAME "TUNNEL_DECAP_TABLE"
#define APP_TUNNEL_DECAP_TERM_TABLE_NAME "TUNNEL_DECAP_TERM_TABLE"
#define APP_TUNNEL_ROUTE_TABLE_NAME "TUNNEL_ROUTE_TABLE"
#define APP_FDB_TABLE_NAME "FDB_TABLE"
#define APP_PFC_WD_TABLE_NAME "PFC_WD_TABLE"
Expand Down Expand Up @@ -424,6 +425,7 @@ namespace swss {
#define CFG_PEER_SWITCH_TABLE_NAME "PEER_SWITCH"

#define CFG_TUNNEL_TABLE_NAME "TUNNEL"
#define CFG_SUBNET_DECAP_TABLE_NAME "SUBNET_DECAP"

#define CFG_SYSTEM_PORT_TABLE_NAME "SYSTEM_PORT"
#define CFG_VOQ_INBAND_INTERFACE_TABLE_NAME "VOQ_INBAND_INTERFACE"
Expand Down Expand Up @@ -513,6 +515,9 @@ namespace swss {
#define STATE_BUFFER_PROFILE_TABLE_NAME "BUFFER_PROFILE_TABLE"
#define STATE_DHCPv6_COUNTER_TABLE_NAME "DHCPv6_COUNTER_TABLE"

#define STATE_TUNNEL_DECAP_TABLE_NAME "TUNNEL_DECAP_TABLE"
#define STATE_TUNNEL_DECAP_TERM_TABLE_NAME "TUNNEL_DECAP_TERM_TABLE"

#define STATE_BFD_SESSION_TABLE_NAME "BFD_SESSION_TABLE"
#define STATE_ROUTE_TABLE_NAME "ROUTE_TABLE"
#define STATE_VNET_RT_TUNNEL_TABLE_NAME "VNET_ROUTE_TUNNEL_TABLE"
Expand Down

0 comments on commit 6305046

Please sign in to comment.