From a094c02adcec2c85767369c3dcbb5c819672428b Mon Sep 17 00:00:00 2001 From: Shu0T1an ChenG Date: Fri, 25 Aug 2017 13:18:12 -0700 Subject: [PATCH] [orchagent]: Remove duplicate SwSS recording file set code --- orchagent/saihelper.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/orchagent/saihelper.cpp b/orchagent/saihelper.cpp index 96a879364ad..cafe7c70c31 100644 --- a/orchagent/saihelper.cpp +++ b/orchagent/saihelper.cpp @@ -200,18 +200,6 @@ void initSaiRedis(const string &record_location) } } - /* Disable/enable SwSS recording */ - if (gSwssRecord) - { - gRecordFile = record_location + "/" + "swss.rec"; - gRecordOfs.open(gRecordFile, std::ofstream::out | std::ofstream::app); - if (!gRecordOfs.is_open()) - { - SWSS_LOG_ERROR("Failed to open SwSS recording file %s", gRecordFile.c_str()); - exit(EXIT_FAILURE); - } - } - attr.id = SAI_REDIS_SWITCH_ATTR_USE_PIPELINE; attr.value.booldata = true; @@ -233,5 +221,4 @@ void initSaiRedis(const string &record_location) exit(EXIT_FAILURE); } SWSS_LOG_NOTICE("Notify syncd INIT_VIEW"); - }