Page MenuHomePhabricator

D5733.id18863.diff
No OneTemporary

D5733.id18863.diff

diff --git a/services/tunnelbroker/src/libcpp/src/Database/DatabaseManager.cpp b/services/tunnelbroker/src/libcpp/src/Database/DatabaseManager.cpp
--- a/services/tunnelbroker/src/libcpp/src/Database/DatabaseManager.cpp
+++ b/services/tunnelbroker/src/libcpp/src/Database/DatabaseManager.cpp
@@ -48,10 +48,6 @@
request.AddItem(
DeviceSessionItem::FIELD_DEVICE_OS,
Aws::DynamoDB::Model::AttributeValue(item.getDeviceOs()));
- request.AddItem(
- DeviceSessionItem::FIELD_CHECKPOINT_TIME,
- Aws::DynamoDB::Model::AttributeValue(
- std::to_string(item.getCheckpointTime())));
request.AddItem(
DeviceSessionItem::FIELD_EXPIRE,
Aws::DynamoDB::Model::AttributeValue(std::to_string(
diff --git a/services/tunnelbroker/src/libcpp/src/Database/DeviceSessionItem.h b/services/tunnelbroker/src/libcpp/src/Database/DeviceSessionItem.h
--- a/services/tunnelbroker/src/libcpp/src/Database/DeviceSessionItem.h
+++ b/services/tunnelbroker/src/libcpp/src/Database/DeviceSessionItem.h
@@ -16,7 +16,6 @@
size_t deviceType;
std::string appVersion;
std::string deviceOs;
- int64_t checkpointTime = 0;
bool isOnline = false;
void validate() const override;
@@ -29,7 +28,6 @@
static const std::string FIELD_DEVICE_TYPE;
static const std::string FIELD_APP_VERSION;
static const std::string FIELD_DEVICE_OS;
- static const std::string FIELD_CHECKPOINT_TIME;
static const std::string FIELD_EXPIRE;
static const std::string FIELD_IS_ONLINE;
@@ -45,7 +43,6 @@
size_t getDeviceType() const;
std::string getAppVersion() const;
std::string getDeviceOs() const;
- int64_t getCheckpointTime() const;
bool getIsOnline() const;
DeviceSessionItem() {
diff --git a/services/tunnelbroker/src/libcpp/src/Database/DeviceSessionItem.cpp b/services/tunnelbroker/src/libcpp/src/Database/DeviceSessionItem.cpp
--- a/services/tunnelbroker/src/libcpp/src/Database/DeviceSessionItem.cpp
+++ b/services/tunnelbroker/src/libcpp/src/Database/DeviceSessionItem.cpp
@@ -15,7 +15,6 @@
const std::string DeviceSessionItem::FIELD_DEVICE_TYPE = "DeviceType";
const std::string DeviceSessionItem::FIELD_APP_VERSION = "AppVersion";
const std::string DeviceSessionItem::FIELD_DEVICE_OS = "DeviceOS";
-const std::string DeviceSessionItem::FIELD_CHECKPOINT_TIME = "CheckpointTime";
const std::string DeviceSessionItem::FIELD_EXPIRE = "Expire";
const std::string DeviceSessionItem::FIELD_IS_ONLINE = "IsOnline";
@@ -66,10 +65,6 @@
this->appVersion =
itemFromDB.at(DeviceSessionItem::FIELD_APP_VERSION).GetS();
this->deviceOs = itemFromDB.at(DeviceSessionItem::FIELD_DEVICE_OS).GetS();
- this->checkpointTime = std::stoll(
- std::string(
- itemFromDB.at(DeviceSessionItem::FIELD_CHECKPOINT_TIME).GetS())
- .c_str());
this->isOnline =
itemFromDB.at(DeviceSessionItem::FIELD_IS_ONLINE).GetBool();
} catch (std::logic_error &e) {
@@ -120,10 +115,6 @@
return this->deviceOs;
}
-int64_t DeviceSessionItem::getCheckpointTime() const {
- return this->checkpointTime;
-}
-
bool DeviceSessionItem::getIsOnline() const {
return this->isOnline;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 9:00 AM (20 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2578665
Default Alt Text
D5733.id18863.diff (3 KB)

Event Timeline