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:50 UTC

[iotdb] branch iotdb1287 created (now c1dcdf7)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a change to branch iotdb1287
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at c1dcdf7  [IOTDB-1287] Fix C++ class Session has 2 useless sort() (#3966)

This branch includes the following new commits:

     new c1dcdf7  [IOTDB-1287] Fix C++ class Session has 2 useless sort() (#3966)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[iotdb] 01/01: [IOTDB-1287] Fix C++ class Session has 2 useless sort() (#3966)

Posted by ha...@apache.org.
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> &times,
         }
 
         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());