From 66f2db6da3fd64987b7918c0978c64a481b203d4 Mon Sep 17 00:00:00 2001 From: Jipan Yang Date: Fri, 25 Aug 2017 13:58:44 -0700 Subject: [PATCH] Remove duplicate open operation for swss.rec file --- orchagent/saihelper.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/orchagent/saihelper.cpp b/orchagent/saihelper.cpp index 96a879364ad..96e5a6c5ec3 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;