Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
In below codes, those 2 sort() should be useless, because "tablet.timestamps" or "times" has been sorted in sortIndexByTimestamp()
============================================
File: ./client-cpp/src/main/Session.cpp
void Session::sortTablet(Tablet& tablet)
{ ... this->sortIndexByTimestamp(index, tablet.timestamps, tablet.rowSize); sort(tablet.timestamps, tablet.timestamps + tablet.rowSize); ... }void Session::insertRecordsOfOneDevice(string deviceId, ...)
{ ... this->sortIndexByTimestamp(index, times.data(), times.size()); sort(times.begin(), times.end()); ... }