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/16 01:29:51 UTC
[iotdb] 01/01: [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 iotdb1287
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit c1dcdf7260e8496bbee95498733cedb21930230c
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 2c56492..7a4d56b 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());