aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Telemetry/TelemetryLiteDBStorageManager.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <roy.mail.net@gmail.com>2025-08-30 22:05:03 +0300
committerRoy Ben Shabat <roy.mail.net@gmail.com>2025-08-30 22:05:03 +0300
commita1d55aa060450b0a16b597794686b2aa41eea259 (patch)
tree62dfd7829b81335103a3c2d1d17c99d8408a5e54 /Software/Visual_Studio/Tango.Telemetry/TelemetryLiteDBStorageManager.cs
parentd9d5b0161efbce3f0d44e890b435883f49df2963 (diff)
downloadTango-a1d55aa060450b0a16b597794686b2aa41eea259.tar.gz
Tango-a1d55aa060450b0a16b597794686b2aa41eea259.zip
PPC Telemetry First Integration.
Diffstat (limited to 'Software/Visual_Studio/Tango.Telemetry/TelemetryLiteDBStorageManager.cs')
-rw-r--r--Software/Visual_Studio/Tango.Telemetry/TelemetryLiteDBStorageManager.cs18
1 files changed, 4 insertions, 14 deletions
diff --git a/Software/Visual_Studio/Tango.Telemetry/TelemetryLiteDBStorageManager.cs b/Software/Visual_Studio/Tango.Telemetry/TelemetryLiteDBStorageManager.cs
index aa50041ca..ab0ff2b58 100644
--- a/Software/Visual_Studio/Tango.Telemetry/TelemetryLiteDBStorageManager.cs
+++ b/Software/Visual_Studio/Tango.Telemetry/TelemetryLiteDBStorageManager.cs
@@ -56,23 +56,13 @@ namespace Tango.Telemetry
Directory.CreateDirectory(Path.GetDirectoryName(DatabasePath));
- String backupPath = DatabasePath + ".bak";
-
if (!File.Exists(DatabasePath))
{
- if (File.Exists(backupPath))
- {
- LogManager.Log("Telemetry database missing. Attempting to restore from backup.", LogCategory.Error);
- File.Copy(backupPath, DatabasePath, overwrite: true);
- }
- else
- {
- LogManager.Log("Telemetry database was not found. A new one will be created and source checkpoints will be recovered from the remote service if required.", LogCategory.Critical);
+ LogManager.Log("Telemetry database was not found. A new one will be created and source checkpoints will be recovered from the remote service if required.", LogCategory.Critical);
- if (_checkpointsRecoveryClient == null && EnableCheckPointsRecovery && EnforceCheckpointsRecovery)
- {
- throw new NullReferenceException("No TelemetryCheckpointsRecoveryClient was introduced. Telemetry Storage manager should not operate.");
- }
+ if (_checkpointsRecoveryClient == null && EnableCheckPointsRecovery && EnforceCheckpointsRecovery)
+ {
+ throw new NullReferenceException("No TelemetryCheckpointsRecoveryClient was introduced. Telemetry Storage manager should not operate.");
}
}