Skip to content

Commit

Permalink
[orchagent]: Remove duplicate SwSS recording file set code (sonic-net…
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuotian Cheng authored Aug 25, 2017
1 parent 12b86e7 commit 2e4e27c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions orchagent/saihelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -233,5 +221,4 @@ void initSaiRedis(const string &record_location)
exit(EXIT_FAILURE);
}
SWSS_LOG_NOTICE("Notify syncd INIT_VIEW");

}

0 comments on commit 2e4e27c

Please sign in to comment.