You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/09/15 08:43:08 UTC
[iotdb] branch master updated: [IOTDB-1287] Fix C++ class Session
has 2 useless sort() (#3966)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new d97128f [IOTDB-1287] Fix C++ class Session has 2 useless sort() (#3966)
d97128f is described below
commit d97128ff1507a1bbf8aa2e22ef0d1bb1e655703d
Author: Jamber <ja...@sina.com>
AuthorDate: Wed Sep 15 16:42:45 2021 +0800
[IOTDB-1287] Fix C++ class Session has 2 useless sort() (#3966)
---
client-cpp/src/main/Session.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/client-cpp/src/main/Session.cpp b/client-cpp/src/main/Session.cpp
index f440af3..ae80ca0 100644
--- a/client-cpp/src/main/Session.cpp
+++ b/client-cpp/src/main/Session.cpp
@@ -381,7 +381,6 @@ void Session::sortTablet(Tablet &tablet) {
}
this->sortIndexByTimestamp(index, tablet.timestamps, tablet.rowSize);
- sort(tablet.timestamps.begin(), tablet.timestamps.begin() + tablet.rowSize);
for (int i = 0; i < tablet.schemas.size(); i++) {
tablet.values[i] = sortList(tablet.values[i], index, tablet.rowSize);
}
@@ -678,7 +677,6 @@ void Session::insertRecordsOfOneDevice(string deviceId, vector <int64_t> ×,
}
this->sortIndexByTimestamp(index, times, times.size());
- sort(times.begin(), times.end());
measurementsList = sortList(measurementsList, index, times.size());
typesList = sortList(typesList, index, times.size());
valuesList = sortList(valuesList, index, times.size());