File tree Expand file tree Collapse file tree 6 files changed +11
-467
lines changed
include/wrench/services/storage/storage_helpers
src/wrench/services/storage
test/services/storage_services Expand file tree Collapse file tree 6 files changed +11
-467
lines changed Original file line number Diff line number Diff line change @@ -266,8 +266,6 @@ set(SOURCE_FILES
266
266
include /wrench/services/compute/batch/batch_schedulers/BatchScheduler.h
267
267
include /wrench/services/compute/batch/batch_schedulers/homegrown/HomegrownBatchScheduler.h
268
268
include /wrench/services/storage/storage_helpers/FileTransferThread.h
269
- include /wrench/services/storage/storage_helpers/LogicalFileSystemNoCaching.h
270
- include /wrench/services/storage/storage_helpers/LogicalFileSystemLRUCaching.h
271
269
src/wrench/logging/TerminalOutput.cpp
272
270
src/wrench/managers/data_movement_manager/DataMovementManager.cpp
273
271
src/wrench/managers/data_movement_manager/DataMovementManagerMessage.cpp
@@ -461,9 +459,9 @@ set(TEST_FILES
461
459
test /services/compute_services/bare_metal_compound_jobs/BareMetalComputeServiceMultiActionTests.cpp
462
460
test /services/compute_services/bare_metal_compound_jobs/BareMetalComputeServiceMultiJobTests.cpp
463
461
test /services/compute_services/bare_metal_standard_jobs/BareMetalComputeServiceOneTaskTest.cpp
464
- test /services/storage_services/LogicalFileSystem/LogicalFileSystemTest.cpp
465
462
test /services/storage_services/SimpleStorageService/SimpleStorageServiceCachingTest.cpp
466
463
test /services/storage_services/SimpleStorageService/SimpleStorageServiceFunctionalTest.cpp
464
+ test /services/storage_services/SimpleStorageService/SimpleStorageServiceWrongServiceTest.cpp
467
465
test /services/storage_services/SimpleStorageService/SimpleStorageServicePerformanceTest.cpp
468
466
test /services/storage_services/SimpleStorageService/SimpleStorageServiceLimitedConnectionsTest.cpp
469
467
test /services/storage_services/SimpleStorageService/StorageServiceDeleteRegisterTest.cpp
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -110,6 +110,10 @@ namespace wrench {
110
110
throw std::invalid_argument (" StorageService::writeFile(): Invalid arguments" );
111
111
}
112
112
113
+ if (location->getStorageService () != this ->getSharedPtr <StorageService>()) {
114
+ throw std::invalid_argument (" StorageService::writeFile(): Can only read from a location at that same storage service" );
115
+ }
116
+
113
117
this ->assertServiceIsUp ();
114
118
115
119
this ->commport ->putMessage (
@@ -249,6 +253,10 @@ namespace wrench {
249
253
throw std::invalid_argument (" StorageService::readFile(): Invalid nullptr/0 arguments" );
250
254
}
251
255
256
+ if (location->getStorageService () != this ->getSharedPtr <StorageService>()) {
257
+ throw std::invalid_argument (" StorageService::readFile(): Can only read from a location at that same storage service" );
258
+ }
259
+
252
260
assertServiceIsUp (this ->getSharedPtr <Service>());
253
261
254
262
this ->commport ->putMessage (
You can’t perform that action at this time.
0 commit comments