Skip to content

Commit

Permalink
quick fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
SaravShah committed Dec 13, 2017
1 parent fb23499 commit e7cf1f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ bundle exec rake m2c_exist_single_root[fixture_sr1]
```ruby
bundle exec rake m2c_exist_single_root[fixture_sr1,profile]
```
this will generate a log at, for example, ```log/profiler_flat_check_existence_for_dir2017-12-11T14:34:06-flat.txt
```
this will generate a log at, for example, ```log/profiler_flat_check_existence_for_dir2017-12-11T14:34:06.txt```

### All Roots
- Without profiling:
Expand All @@ -121,7 +120,7 @@ bundle exec rake m2c_exist_all_storage_roots
```ruby
bundle exec rake m2c_exist_all_storage_roots[profile]
```
this will generate a log at, for example, ```log/profile_flas_check_existence_for_all_storage_roots2017-12-11T14:25:31-flat.txt```
this will generate a log at, for example, ```log/profile_flat_check_existence_for_all_storage_roots2017-12-11T14:25:31.txt```
## Development

### Running Tests
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ task :m2c_exist_single_root, [:storage_root, :profile] => [:environment] do |_t,
elsif args[:profile].nil?
MoabToCatalog.check_existence_for_dir(storage_dir)
end
puts "#{Time.now.utc.iso8601} Moab to Catalog Existence Check for a single storage root is done"
puts "#{Time.now.utc.iso8601} Moab to Catalog Existence Check for #{storage_dir} is done"
$stdout.flush
end

Expand Down
2 changes: 1 addition & 1 deletion app/services/preserved_object_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def confirm_online_version
if incoming_version == pres_copy.version
handler_results.add_result(PreservedObjectHandlerResults::VERSION_MATCHES, pres_copy.class.name)
handler_results.add_result(PreservedObjectHandlerResults::VERSION_MATCHES, pres_object.class.name)
elsif incoming_version != pres_copy.version
else
handler_results.add_result(PreservedObjectHandlerResults::UNEXPECTED_VERSION, pres_copy.class.name)
update_status(pres_copy, PreservedCopy::EXPECTED_VERS_NOT_FOUND_ON_STORAGE_STATUS)
end
Expand Down

0 comments on commit e7cf1f9

Please sign in to comment.